今天在做相册和照相机获取图片时遇到了这个问题,后来查看文档http://developer.android.com/reference/android/os/TransactionTooLargeException.html。
The Binder transaction buffer has a limited fixed size, currently 1Mb, which is shared by all transactions in progress for
the process. Consequently this exception can be thrown when there are many transactions in progress even when most of the individual transactions are of moderate size.
本文讨论了在Android应用中使用相册和照相机获取图片时遇到的 TransactionTooLargeException 错误,详细解释了错误原因及解决方法:避免在Activity返回时直接返回位图,而是返回资源的Uri,以便在调用相册的Activity中通过Uri获取位图。

被折叠的 条评论
为什么被折叠?



