[android-developers] Re: savedInstanceState null?

2011-01-21 Thread Emanuel Moecklin
onSaveInstanceState() is used to save per instance state while SharedPreferences is used to save persistent data across sessions. Whenever you start the app the SharedPreferences are there, data saved in onSaveInstanceState() is gone once the app has been shut down. onSaveInstanceState() can be us

[android-developers] Re: savedInstanceState null?

2011-01-20 Thread Chris
OH obviously, I don't know why I was so set on using the savedInstance... Anyway SharedPreferences works great. Chris On Jan 20, 3:03 pm, TreKing wrote: > On Thu, Jan 20, 2011 at 1:48 PM, Chris wrote: > > I'm trying to save the state of my app while I shut it down but every > > time I bring