I have an app that only requires the value of a textview field to be saved... what would be the most simple and efficient way to save such a small amount of data? Creating a database for this seems like overkill. would onSaveInstanceState be sufficient?
A:
SharedPreferences is the easiest if you want it to be persisted across sessions.
srinathhs
2010-10-05 17:03:55
A:
I think onSaveInstanceState will not survive a closing of the whole application like it will happen if you shut down the phone or your app crashes.
Go with the sharedPreferences Yoni mentioned. They will make your data persistent on the phone memory without much work for you.
Janusz
2010-10-05 21:56:25