I have an app in which there is a gridview of small images and when you click on each gridview item, it opens a full screen version of the image in a new activity with button on it left and right to go to previous/next image which are also on another activity. Now, if the user touches back button on any of the fullscreen image avtivites, i want it to go to the activity with the gridview, instead, it does an unwinding and goes to the previous image and retraces the steps that the user has performed.
How do i make the back button redirect to gridview activity. I would prefer to use activities for the images, rather than fragments?