2017-11-09 1 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)); 

나쁜 생각입니다. 인 텐트에는 최대 바이트 크기가 있습니다. 그것을 파일에 쓰고 파일 이름을 인 텐트에 전달하십시오.