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);
精彩评论