How do I save text input into preferences with onSaveInstanceState?
<p>This app is simple and all I want it to do is just keep the text in the text field even after I close the app. I looked through some tutorials but I can't seem to figure out how to get it to save with <code>onSaveInstanceState</code> and <code>onRestoreInstanceState</code>. How can I do it?</p>

<p>Here is 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>
