启动"启动应用程序的抽屉"从应用程序?
问题描述:
我想从应用程序到启动应用程序的抽屉
与瓷砖应用程序图标启动(或回),而不是桌面上。
I would like to launch (or go back) from an application to the launcher app drawer
with the tiled app icons, not to the desktop.
Intent intent = new Intent("android.intent.action.MAIN");
intent.setComponent(new ComponentName("com.android.launcher","com.android.launcher2.Launcher"));
intent.addCategory("android.intent.category.LAUNCHER");
startActivity(intent);
这code推出桌面。我想到达应用程序图标
。我怎样才能做到这一点?启动的清单似乎并没有给予任何活动呢?
This code "launches" the desktop. I would like to reach the app icons
. How can I achieve that? TheManifest of Launcher
doesn't seem to give any activity for this?
葛瑞格尔
答
正如aneal指出,因为它不是由Android在启动应用程序清单暴露你不能说这种看法。
As pointed out by aneal, you can't call this view as it's not exposed by Android in the launcher app manifest.