In my android application I search for a cafes first. When user select one cafe next activity will show more details about it. Then user can view the map of the cafe. When user click on the Done button I need to redirect user to the search result which was the first activity. So how can I do this ? Calling finish() method will only close the current activity.
Thanks in advance !
you can use finish() in every activity as you proceed or you can start your first activity with this flag
FLAG_ACTIVITY_CLEAR_TOPand it will clear all the top activity of your first activity and it will bring your first activity on top.Use like this: