意图启动所有应用程序活动

意图启动所有应用程序活动

问题描述:

可能重复:结果
  How以编程方式启动的主屏幕在Android中

有没有意向,我可以prepare将启动所有应用活动(即应用程序启动器)?

Is there an Intent I can prepare that will start the "All Apps" activity (aka app launcher)?

我看着LogCat中和ActivityManager当我点击从主屏幕上的图标不记录的意图。

I looked in LogCat and ActivityManager isn't logging an Intent when I click on the icon from the home screen.

纵观发射的一些副本,它看起来并不像有你可以用它来直接打开默认的应用程序启动的意图。您可以在https://github.com/cscott/android-launcher2/blob/master/src/com/android/launcher2/Launcher.java:参考code是在 https://android.googlesource.com/platform/packages /应用/的launcher2 的,但不具有便利的浏览接口的任何多

Looking at some copies of the Launcher, it doesn't look like there is an Intent you can use to open the default app launcher directly. You can see one copy of the source at https://github.com/cscott/android-launcher2/blob/master/src/com/android/launcher2/Launcher.java: the reference code is at https://android.googlesource.com/platform/packages/apps/Launcher2, but doesn't have the convenient browsing interface any more.

有一个 mAllAppsButton 显示应用程序选择画面,但它似乎没有被捆绑到任何意图,只是内部的点击处理程序。你可能是出于运气。

There is an mAllAppsButton that shows the app selection screen, but it doesn't appear to be tied to any Intent, just to an internal click handler. You may be out of luck.