I try to sent my photo via intent.
@Override
public void onPictureTaken(byte[] data, Camera camera) {
Intent intent=new Intent(this,AktivityPreview.class);
intent.putExtra("picture", data);
startActivity(intent);
}
Second activity
Intent intent=getIntent();
byte[] arrayP=intent.getExtras().getByteArray("picture");
But before second activity launch I get error FALED BINDER TRANSACTION
Android's Binder transaction buffer fixed size(500kb to 1mb) and is shared by all transactions in your app. As your byte[] can be larger than the available buffer it will generate FALED BINDER TRANSACTION error or TransactionTooLarge exception. Try saving the byte into a imagefile and send that file's path via a intent.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments