[英]Which is the best way to transfer bulk of data (i.e. objects) from one Activity to another Activity in Android?
What is the best way to transfer bulk of data (ie objects) from one Activity to another Activity in Android? 在Android中将大量数据(即对象)从一个Activity转移到另一个Activity的最佳方法是什么?
Note 注意
Do putextra
or getextra
fulfill this thing? putextra
或getextra
这一点吗? Because I have bulk of objects to transfer. 因为我有大量的物品要转移。
您可以将您的Object
放入Serializable
并将它们插入Bundle
,然后将Bundle
附加到您的Activity
并将其传递,检索它并在下一个Activity
序列化它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.