开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜