Hi,

I have attached a menu to my TabActivity, and when a menu item is
selected, I would like to do something different based on which view
is being currently displayed in the TabHost.

int getCurrentTab() returns me the id of the current tab... but from
that int how can I get the instance of the activity running?

I also tried getCurrentView(), getCurrentTabView(), but these return
things I can't seem to cast to the class of the current activity.

Help is appreciated!
Thanks,
sy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to