How to store data from my app

前端 未结 5 885
无人共我
无人共我 2020-12-06 19:02

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 wa

5条回答
  •  鱼传尺愫
    2020-12-06 19:28

    If you have to store small amount of data, you can use SharedPreferences in Android.

    If the data that you have to store is big/complex enough, try using SQLite database.

    Still need help?

    UPDATE: There's a tutorial that I wrote to demonstrate how to use SQLite 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

提交回复
热议问题