How can I get a specific Activity from TabActivity or TabHost?
I tried TabHost.getChildAt()
, but a View
instance can't be casted to an Activity
instance.
Or how do you get an Activity which is running in background?
How can I get a specific Activity from TabActivity or TabHost?
I tried TabHost.getChildAt()
, but a View
instance can't be casted to an Activity
instance.
Or how do you get an Activity which is running in background?
I couldn't find TabActivity.getLocalActivityManager().getActivity()
.
For me it worked using TabActivity.getLocalActivityManager().getCurrentActivity()
.
I know this isn't what you're looking for, but I HIGHLY recommend not using TabActivity. In all the projects I've worked on, we wound up yanking it out and just using buttons that look like tabs.
I also think its deprecated in 3.0, and certainly Ice cream. They push the action bar. I'd look for one of the available action bar libraries.