wood burning stoves 2.0*
The moose likes Android and the fly likes how to store  and retrieve array list value in shared preference in android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to store  and retrieve array list value in shared preference in android" Watch "how to store  and retrieve array list value in shared preference in android" New topic
Author

how to store and retrieve array list value in shared preference in android

vijayakumar durai
Ranch Hand

Joined: Aug 18, 2008
Posts: 153
Hi friends,
can any body tell how to store and retrieve array list value in shared preference in android give example


Thanks
Misha van Tol
Ranch Hand

Joined: Jan 02, 2010
Posts: 56

Can't be done, shared preferences is for storing primitive types only (String, int, boolean etc.).
It depends on the size of, and how the ArrayList is build but if the data can't be easily recreated and must be stored I would suggest storing it in a sqlite database.
 
Don't get me started about those stupid light bulbs.
 
subject: how to store and retrieve array list value in shared preference in android
 
Similar Threads
why there is need for shared preference.
What it means
Starting to open the connection at the beginning of the class
Checkbox List
Rock paper scissors project