开发者

How do I pass a Linked List of custom objects between activities in an android application?

开发者 https://www.devze.com 2023-01-30 16:49 出处:网络
I need a linked list of custom objects when 开发者_运维百科trying to bundle it I do not see a putObjectLinkedList method is there an easy way of doing this or must implement the Parcable interface in

I need a linked list of custom objects when 开发者_运维百科trying to bundle it I do not see a putObjectLinkedList method is there an easy way of doing this or must implement the Parcable interface in my custom object?


LinkedLists are Serializable. Have you tried putSerializable(String key, Serializable value)? Your custom objects will need to implement Serializable as well though.

0

精彩评论

暂无评论...
验证码 换一张
取 消