开发者

How to come back on parent Tab activity from its child Tab activity

How to come back on parent Tab activity from its child activity whenever click on that particular tab .(In case of TabGroupAc开发者_如何学Ctivity)


@Override
public void onBackPressed() {
    finish();
    super.onBackPressed();
}

Or call activity..........

Intent cityIntent = new Intent(getParent(),
                    YourActivity.class);
            TabGroupActivity parentActivity = (TabGroupActivity) getParent();
            parentActivity
                    .startChildActivity("YourActivity", cityIntent);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜