小编Mys*_*elf的帖子

Android - TransactionTooLargeException

在 ProcessRecord{3c67ecf8080:com.example/u0a171} android.os.TransactionTooLargeException 中引发启动活动异常:数据包大小 572488 字节

传递数据

Intent intent = new Intent(activity, SearchListActivity.class);
intent.putExtra(HRConstants.SEARCHLIST, searchResponse);
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)

获取数据

Intent intent = getIntent();
searchResponse = intent.getParcelableExtra(HRConstants.SEARCHLIST);
searchLists = searchResponse.getSearchResults();
Run Code Online (Sandbox Code Playgroud)

minSdkVersion15 岁,targetSdkVersion26 岁。

响应包含 1736 个项目,后跟一个异常。它适用于较少的项目。

android exception

5
推荐指数
1
解决办法
350
查看次数

标签 统计

android ×1

exception ×1