But I couldn't think of s situation where you will need it. Shared preferences are not a way to store your data. Either use the database or a file(xml).
Thanks and Regards, Kumar Bibek On Mar 15, 10:22 am, Kumar Bibek <[email protected]> wrote: > Yes this is a Java question. You cannot serialize a list. If you want > that, then you can create your own Custom list, extending from > ArrayList/List which implements Serializable. > > And then you can do what you need to do. > > Thanks and Regards, > Kumar Bibek > > On Mar 15, 12:00 am, Ferm <[email protected]> wrote: > > > Maybe this is more of a Java question.. > > > I have a java.utils.List populated with instances of my own class. I > > want to save them and have them restored when running the app again. > > > I'm thinking of saving it as a string in SharedPreferences. I need to > > serialize everything so I guess my CustomClass needs to implement > > Serializeable.. but List does not implement it. I was hoping to just > > call serialize on the list and the list would call serialize on all > > its items. > > > How would you do it? > > > Thx -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

