开发者

Fail to pass a List with a lot of Itens between Activities

开发者 https://www.devze.com 2023-04-01 11:09 出处:网络
I have this code: Intent 开发者_JS百科intent = new Intent(currentActivity, nextActivity); Bundle bundle = new Bundle();

I have this code:

Intent 开发者_JS百科intent = new Intent(currentActivity, nextActivity);

Bundle bundle = new Bundle(); bundle.putSerializable(nameParameter, serializable);

My serializable is a ArrayList with a bunch of elements. When I use the method startActivity. A FAILED BINDER TRANSACTION happens. How I can solve this?


an intent has a limited max size. consider passing your data in some other way: either as a list of IDs, in a file, in a database...

0

精彩评论

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