【发布时间】:2011-05-18 01:40:08
【问题描述】:
我希望能够在我的应用中启动主屏幕的特定页面,有什么方法可以做到这一点吗?
以下是启动主屏幕的典型方法,但我没有看到有关添加屏幕页面或索引值的任何内容。
Intent startMain = new Intent(Intent.ACTION_MAIN);
startMain.addCategory(Intent.CATEGORY_HOME);
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(startMain);
【问题讨论】:
标签: android android-intent launcher homescreen