java android中的活页夹交易失败

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5270972/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 10:20:44  来源:igfitidea点击:

Binder transaction failing in android

javaandroidandroid-activityandroid-binder

提问by aTJ

Possible Duplicate:
Failed Binder Transaction when returning camera image

可能的重复:
返回相机图像时 Binder 交易失败

What are the chances of binder transaction failing in android stack? I have an application which switches thru different activities, but the size of data being exchanged between each activity is very less (less than 20 bytes) which includes no images. In some case, system crashes out with out of memory and in other cases application terminates.

android 堆栈中活页夹事务失败的可能性有多大?我有一个通过不同活动切换的应用程序,但每个活动之间交换的数据大小非常小(小于 20 字节),其中不包括图像。在某些情况下,系统会因内存不足而崩溃,而在其他情况下,应用程序会终止。

Please help...I am in a real spot of bother..

请帮忙...我真的很麻烦...

回答by Reno

I think that you are over-logging. Or that there is a huge memory leak. Minimize your application and run the android Task Manager. Depending on your android (mobile) device you can cause the system to crash if there is over-logging or big leaks.

我认为你是过度记录。或者说存在巨大的内存泄漏。最小化您的应用程序并运行 android 任务管理器。根据您的 android(移动)设备,如果存在过度日志记录或大泄漏,您可能会导致系统崩溃。

回答by dharam

During a remote procedure call, the arguments and the return value of the call are transferred as Parcel objects stored in the Binder transaction buffer. If the arguments or the return value are too large to fit in the transaction buffer, then the call will fail and TransactionTooLargeException will be thrown.

在远程过程调用期间,调用的参数和返回值作为 Parcel 对象传输,存储在 Binder 事务缓冲区中。如果参数或返回值太大而无法放入事务缓冲区,则调用将失败并抛出 TransactionTooLargeException。

refer this link form android developer

请参阅此链接表单 android 开发人员