0

Possible Duplicate:
How to Launch Home Screen Programmatically in Android

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

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

Community
  • 1
  • 1

2 Answers2

0

I hope this is what you want.

   Intent intent = new Intent(Intent.ACTION_MAIN);
   intent.addCategory(Intent.CATEGORY_LAUNCHER); 
nandeesh
  • 24,740
  • 6
  • 69
  • 79
0

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.

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.

Femi
  • 64,273
  • 8
  • 118
  • 148