This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
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