Skip to content Skip to sidebar Skip to footer

Android Maps Within TabHost. GetTabHost() Return Error

I have problem with initializing TabHost. I need to have in View several Tabs which show different activities: one must show google map, second - log in form. In created code there

Solution 1:

getTabHost() is method only found in TabActivity

and if you want to add get Tabs other than TabActivity, put TabHost in layout.xml and then try this way:

TabHost tabHost = (TabHost)this.findViewById(R.id.tab_host_id);
tabHost.setup(); // dont forget to call this line.

For more detail go here


Post a Comment for "Android Maps Within TabHost. GetTabHost() Return Error"