Actually i want to know how to store data from my app in the device so that i can review the store data when i run the application again..
means in simple terms i want to say that suppose i have text box where i write some information..now when i click the submit button, this information will be save,so that when i open the application the stored data should be appear in the text box..
In all terms i want to say that i just want to stored data in the way that we are using database for storing data..so please anyone suggest me how that can be done in android.
if possible show with an example
Regards
Anshuman
If you have to store small amount of data, you can use
SharedPreferencesin Android.If the data that you have to store is big/complex enough, try using
SQLitedatabase.Still need help?
UPDATE:
There’s a tutorial that I wrote to demonstrate how to useSQLite database. check it out here. Although it copies existing database into device’s memory, but other versions of it, which create database through code can also be devised from it.A better tutorial is here : http://www.vogella.com/tutorials/AndroidSQLite/article.html