There is no problem with the programmatic change of the application header (I will do this via getActionBar().setTitle() ); What is the shortest way to implement getting the current tab? I know there is an onTabSelected method, but I did not find normal (= concise) examples. Ideally, I see a switch-case block surrounded by a similar onTabSelected method:
... tabSpec = tabHost.newTabSpec("tab1"); ... switch (tag) { case "tab1": getActionBar().setTitle("ΠΠΊΠ»Π°Π΄ΠΊΠ°1"); case "tab2": getActionBar().setTitle("ΠΠΊΠ»Π°Π΄ΠΊΠ°2"); case "tab3": getActionBar().setTitle("ΠΠΊΠ»Π°Π΄ΠΊΠ°3"); case "tab4": getActionBar().setTitle("ΠΠΊΠ»Π°Π΄ΠΊΠ°4"); default: break; } I created tabs via TabHost (there are other ways, as it turned out).