Search code examples
androidtabsactivitygroup

How to navigate from activity in one activity group to another activity in android


I have two tabs. In these two tabs I have different activity groups. How to navigate from an activity in one activity group to another activity in android? Please help me with suitable examples.


Solution

  • To programmatically switch between tabs use the TabHost method setCurrentTab(int index) or setCurrentTabByTag(String tag). The user can also click the tab UI (if used) to switch between them.