Ram*_*mbu 5 android kotlin transactiontoolargeexception
我正在开发生产应用程序。我在 Crashlytics 中收到异常。我不知道发生了什么,因为它没有指向任何活动。只是我收到这样的错误。
Caused by android.os.TransactionTooLargeException: data parcel size 5971992 bytes
at android.os.BinderProxy.transactNative(BinderProxy.java)
at android.os.BinderProxy.transact(BinderProxy.java:1179)
at android.app.IActivityManager$Stub$Proxy.activityStopped(IActivityManager.java:3969)
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:144)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6898)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Run Code Online (Sandbox Code Playgroud)
是否有任何工具/库可以检测此问题
我也检查了这个链接对 TransactionTooLargeException 做什么
我试过这个工具https://github.com/guardian/toolargetoo它对我没有帮助。你能分享你的想法吗
小智 0
由 android.os.TransactionTooLargeException 引起:数据包大小 5971992 字节 有没有任何工具可以调试此错误
像这样将数据存储到 SharedPreferences 中
SharedPreferences.Editor editor = sharedpreferences.edit();
editor.putString("HipId",services.get(position).getId());
editor.putString("PatientId",services.get(position).getPatient_id());
editor.putString("DataPush",services.get(position).getData_push());
editor.apply();// this Kb Data
Intent intent = new Intent(context, SecondActivity.class);
startActivity(intent);
and fetch the Data SecondActivity class
hipId=sharedpreferences.getString("HipId", "");;
PatientId=sharedpreferences.getString("PatientId", "");
String data=sharedpreferences.getString("DataPush", "");
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4883 次 |
最近记录: |