I have Activity1 which have one ImaveView including image preview. Once i press the button i go from Activity1 to Activity2. In Activity2 i do not have image preview but an opt
Simple Way Use this
First Activity
Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.men_icon);
Bundle extras = new Bundle();
Intent intent=new Intent(FirstActivity.class,SecondActivity.class);
extras.putParcelable("Bitmap", bitmap);
intent.putExtras(extras);
startActivity(intent);
Second Activity
ImageView iv_photo=(ImageView)findViewById(R.id.iv_photo);
Bundle extras = getIntent().getExtras();
Bitmap bmp = (Bitmap) extras.getParcelable("Bitmap");
iv_photo.setImageBitmap(bmp);