bingoogolapple / BGAPhotoPicker-Android

Android 图片选择、预览、九宫格图片控件、拖拽排序九宫格图片控件
2.24k stars 413 forks source link

Caused by: android.os.TransactionTooLargeException: data parcel size xxxxxxx bytes #134

Closed shangxiazuoyou closed 4 years ago

shangxiazuoyou commented 6 years ago

当手机内图片数量过多时,比如我的手机内有一万张图片,点击预览时,就会报这个异常,请问有没有什么好的方法来解决这个问题呢? 报错代码如下: Intent photoPickerPreviewIntent = new BGAPhotoPickerPreviewActivity.IntentBuilder(this) .previewPhotos((ArrayList<String>) mPicAdapter.getData()) .selectedPhotos(mPicAdapter.getSelectedPhotos()) .maxChooseCount(mMaxChooseCount) .currentPosition(currentPosition) .isFromTakePhoto(false) .build(); startActivityForResult(photoPickerPreviewIntent, RC_PREVIEW);

lindroy commented 5 years ago

今天遇到了同样的问题,希望作者尽快看看。

jesse1500 commented 5 years ago

同样遇到这个问题

zjl801 commented 5 years ago

同样遇到这个问题