[android-developers] Re: saving EditText state before device goes to sleep

2008-12-26 Thread j
thanks mark. it works. On Dec 26, 5:04 pm, Mark Murphy wrote: > j wrote: > > When device goes to sleep, any text entered into the EditText is gone > > when device awakes.  How do I save/restore the text? > > Implement onSaveInstanceState() and save whatever state you want in the > Bundle. You wi

[android-developers] Re: saving EditText state before device goes to sleep

2008-12-26 Thread Mark Murphy
j wrote: > When device goes to sleep, any text entered into the EditText is gone > when device awakes. How do I save/restore the text? Implement onSaveInstanceState() and save whatever state you want in the Bundle. You will get that Bundle back in onCreate(). -- Mark Murphy (a Commons Guy) htt