开发者

TabHost: how to start an activity in another TabGroupActivity

开发者 https://www.devze.com 2023-04-10 09:44 出处:网络
My application contains a TabHost with 3 Tabs: Tab 1: activity 1, activity 2 ... Tab 2: activity A, activity B ...

My application contains a TabHost with 3 Tabs:

Tab 1: activity 1, activity 2 ...

Tab 2: activity A, activity B ...

I am using the google tutorial: http://developer.android.com/resources/tutorials/view开发者_运维百科s/hello-tabwidget.html

When I am in activity B, I want to launch, when I click on a button, the activity 1. The problem is the activity is launched in Tab2 and not in Tab1. Any idea to launch it in the good tab?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号