Hi I have an Activity(Activity_1) which calls another Activity(Activity_2) using activity for result. In Activity_2 I have a grid view which shows some images. I want to show the selected image from grid view to the Image view in Activity_1. Can anyone tell me how to send the image details in grid view to the first activity.
Note the images are in my drawable folder.
Thanks,
Regards, Sniper.
If your images are in your
drawablefolder, then you can simply return the ID of the image to the calling activity. In theonFinishof your second activity, just callsetResult(R.drawable.selected_image)– then in your first activity, once you get that result, just usesetDrawableResource(received_result)on your ImageView.