I have to transfer the image from one activity to another. In first activity the user selects the image out of several images from scroll view and that image has to be displayed in the imageview of next activity. Help required.
In your first Activity
Convert ImageView to Bitmap
imageView.buildDrawingCache(); Bitmap bitmap = imageView.getDrawingCache(); Intent intent = new Intent(this, NewActivity.class); intent.putExtra("BitmapImage", bitmap);
In second Activity
Bitmap bitmap = (Bitmap) intent.getParcelableExtra("BitmapImage");
Then display bitmap in ImageView.