Why isn't my text saving when i leave the activity?
<p>I have a notes app and basically i want it to save the text input and restore it when i return to the activity. But why isn't my code doing that? I tried onRestoreInstancestate and onRestore but it's not working. Any one know how i can save the text input after i exit the app?  </p>

<p>notes.java:</p>

<pre><code>public class notes extends Activity{




    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.notes);




        Button wg = (Button) findViewById(R.id.button3);
        wg.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent intent = new Intent();
                setResult(RESULT_OK, intent);
                finish();
            }   
        });

    }
} 
</code></pre>
