Android : How to go to previous selected tab when pressing an activity action bar back button

on Tuesday, July 29, 2014


I have six Tabs in MainActivity, the second tab have a listview, when user press on the listview item, its open a new Activity with Action bar, so, when user press on the back button of the second activity, I want to go to previous tab (second tab) of Main Activity, but its loading the First Tab (Home Tab).


How I can resolve this problem. Any help would be appreciated. Thanks.


0 comments:

Post a Comment