android - What is the best way to find out the number of Tabs in a TabActivity? -


i create tabs dynamically in tabactivity. there simple way ask number of existing tabs?

maybe bit of workaround, should able use: gettabhost().gettabwidget().gettabcount().

i tested in app , worked correctly.

see here more info: http://developer.android.com/reference/android/widget/tabwidget.html#gettabcount()


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -