I’m trying to make an activity in a tabHost.
I want to be able to press a button in activity A, thats in tab tA and go to tab tB.
i’ve found this solution:
Android – Switch Tabs from within an Activity within a tab
but I can’t figure out how to find the “indexOfTabToSwitch”
How do I get this index?
You will have to give the index with it. If you want to go to tB and it is on the second position.. You will use indexOfTabToSwitch(1);