2017-11-09 15 views
0

私はカメラから他のアクティビティに画像を送りました。私は意図でそれをやろうとしています。しかし、私はエラーが発生しました。 FAILED BINDER TRANSACTIONエラーを解決する方法を教えてください。テント内のビットマップを置くB.classPutextraビットマップの問題 - FAILED BINDER TRANSACTION

if(getIntent().hasExtra("bitmap")) { 
byte[] getByte = getIntent().getByteArrayExtra("bitmap"); 
mBitmap = BitmapFactory.decodeByteArray(getbyte, 0, getbyte.length); 
bitmapDrawable = new BitmapDrawable(getResources(), mBitmap); } 

答えて

1

Intent intent = new Intent(this, B.class); 
byte[] byteBitmap = converttoByte(mNextPageBitmap); 
intent.putExtra("bitmap", byteBitmap); 
startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION)); 

は悪い考えです。インテントには最大バイトサイズがあります。それをファイルに書き込み、そのファイル名をインテントに渡します。

関連する問題