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

Reply via email to