Hi all. I have TabActivity, whose tabs are added during onCreateMethod. Something like this:
tabHost = getTabHost(); tabHost.addTab(tabHost.newTabSpec("main_tab1").setIndicator(...)); ... It works fine, but sometimes I get NullPointerExeption when trying to add tab using addTab. This problems reproduced very rarely, so I can't find, where I'm wrong. Somewhere I've read, that setting first tab as current (tabHost.setCurrentTab(0)) before adding tabs (using addTab) can fix this problem, but no luck :( So, many thanks for any help. -- Regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en