bookmark/favorites
<p>I am trying to make an app which consists of only text. Every page(xml) is different. Now I want to make a bookmark page for the user to bookmark his/her favorites. I succeeded making a bookmark page which is activated with a button on the home-screen, I also have a bookmark button on every text page, but I can't figure out how I can send or reveal my bookmarked page/text on the bookmark page. this is what i got, which does not work:</p>

<pre><code>package life.quotes;


/** Called when the activity is first created. */    
@Override    
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.page1);
    cb = (CheckBox)findViewById(R.id.favorites);
    b = (Button)findViewById(R.id.button_right);

    Button Page2 = (Button) findViewById(R.id.button_right);
    Page2.setOnClickListener(new View.OnClickListener() {
        public void onClick (View view) {
            Intent myIntent = new Intent(view.getContext(), Page2.class);
            startActivityForResult(myIntent, 0);
        }
    });

    cb.setOnClickListener(this);
}

private void savePrefs(String key, boolean value){
    SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
    Editor edit= sp.edit();
    edit.putBoolean(key, value);
    edit.commit();
}

private void savePrefs(String key, String value){ 
    SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
    Editor edit= sp.edit();
    edit.putString(key, value);
    edit.commit();
}

@Override
public void onClick(View v) {
    // TODO Auto-generated method stub
    savePrefs("FAVORITES", cb.isChecked());
    savePrefs("QUOTE1", getString(R.string.quote1));
}
        `
</code></pre>

<p>Can anyone please help me?</p>
