Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个标签主机。当通知到来时,我想打开请求的选项卡,并在此选项卡活动中调用一个函数。我怎样才能做到这一点?
谢谢。
如果要从 TabActivity 打开特定选项卡,请执行以下操作
TabHost tabHost = getTabHost(); tabHost.setCurrentTab(position);