This is my class:
public class DumyDisplay extends TabGroupActivityI am calling new activity which is part of other tab:
Intent i = new Intent(DumyDisplay.this,SmsActivity.class); i.putExtra(BODY_SMS, dataInboxBody); startChildActivity("DumyDisplay", i);
The problem is that it's opening in the same tab but I want to o开发者_如何学运维pen it in different tab.
try this to call a new Activity of another Tab,
Intent i= new Intent(getParent(), SmsActivity.class);
TabGroupActivity parentActivity = (TabGroupActivity)getParent();
parentActivity.startChildActivity("SmsActivity", i);
加载中,请稍侯......
精彩评论