我提出包含三个选项卡Android应用程序..在第三个选项卡中有登录屏幕..的ActivityGroup被弃用
当我点击登录按钮...我想替换包含列表视图与活动的活动和注销按钮....
以前我是用活动组更换activity..But活动组现在已经过时..
现在我怎能取代第三个选项卡下的活动?
我使用这些代码
Intent intent = new Intent(MyApp.this, LoginPage.class);
replaceContentVieww("activity4", intent);
public void replaceContentVieww(String id, Intent newIntent) {
// TODO Auto-generated method stub
View view = getLocalActivityManager().startActivity(id,newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)).getDecorView();
setContentView(view);
}
没有从中我才知道这个class has been deprecated.
你是否得到了输出..?我面临同样的问题 – GaneshKumar
你必须使用片段和片段管理器 –
你有任何参考或示例代码或链接..? – GaneshKumar