Tabhost Nullpointerexception When Tabhost Isn't The Only Thing In The Layout
I've noticed that there are numerous issues with using tabhost, but none of them really fit my issue. I am trying to create a view with an action bar on top, then a row of tabs un
Solution 1:
The documentation states that you should "Call setup() before adding tabs if loading TabHost using findViewById().", which is what you're doing. See here . However, since you're using a TabActivity, why are you not calling getTabHost()
instead of getting the view manually?
Post a Comment for "Tabhost Nullpointerexception When Tabhost Isn't The Only Thing In The Layout"