This is my process: it is so good. Activity1:
ByteArrayOutputStream stream=new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG,100,stream); byte[] byteArray=stream.toByteArray(); Intent intent = new Intent(getApplicationContext(), FrameActivity.class); intent.putExtra("Image", byteArray); startActivity(intent);
in FrameActivity.class
collageView = (CollageView) findViewById(R.id.btn_collage); byte[] byteArray = getIntent().getByteArrayExtra("Image"); Bitmap bmp = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); collageView.setImageBitmap(bmp);
source share