Android: How to save/restore data
In my app I have a Linked List (I use the standard List()). I want this list to be saved to the sd card (or the phone memory) every time the user exits the app and restore it every time the user starts the a开发者_如何学Pythonpp. How can I do it ?
you can use SharedPreferences
, refer the doc , and this tutorial to understand how to do it :)
The Android Developer site has an excellent guide how you can store your data on the phone.
精彩评论