In my application I have a tabHost with 5 tabs. And I want to set one of them (HomeTab) as my default tab, so every time I press ‘BACK’ when I’m on the “top view” of some other tab, I want to return to the Home Tab. What is the wise way to do this? To control states I use static variables. Do I have to put some if statement and check if the current tab is a Home Tab? Thanks.
In my application I have a tabHost with 5 tabs. And I want to
Share
I’m not 100% sure of this but it sounds like you want and need to override the default action of the ‘back’ button. Careful in doing this as it may be that you’re doing something your users don’t expect.