I have an Android tab application. Suppose at the third tab, I exit the app. When I starts the app again, it gets restated and shows the first tab. My requirement is when aplication starts it should go to the previously selected tab. How to do this?
Share
You’ll have to override the Method “onSavedInstanceState”
Please see this question:
Saving Android Activity state using Save Instance State
it is described there in detail.
Edit: as stated in the comments this only works with the normal way you would close your app on your phone and it is not neither persistent after reboot of the phone nor after killing your apps process.