【发布时间】:2018-04-23 00:09:41
【问题描述】:
我将照片从相机发送到其他活动。我正在尝试这样做。但我得到了一个错误。如何解决 FAILED BINDER TRANSACTION 错误。
Intent intent = new Intent(this, B.class);
byte[] byteBitmap = converttoByte(mNextPageBitmap);
intent.putExtra("bitmap", byteBitmap);
startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));
B.类
if(getIntent().hasExtra("bitmap")) {
byte[] getByte = getIntent().getByteArrayExtra("bitmap");
mBitmap = BitmapFactory.decodeByteArray(getbyte, 0, getbyte.length);
bitmapDrawable = new BitmapDrawable(getResources(), mBitmap); }
【问题讨论】:
标签: android android-intent memory-leaks bitmap camera