How can I save a GridView with Vector list in android? I 'm developing a launcher and I want the shortcuts to be saved after onDestroy or any crash.
Asked
Active
Viewed 196 times
1 Answers
0
Not sure what you exactly mean, but why not save data using SharedPreferences at some stage while the application is running? or when user makes some changes.
Here is an example of how to use sharedpreferences. How to use SharedPreferences in Android to store, fetch and edit values
you can also check other storage options available here http://developer.android.com/guide/topics/data/data-storage.html
-
I want to save the grid view after the items where added. Should I use SharedPreferences? – user3700888 Jul 02 '14 at 21:21
-
Depends on how big is your data and type of data. if your data is small then use SharedPreferences otherwise check out other storage options. – mnaa Jul 02 '14 at 21:29