0

I want to send intent from any application to all apps screen. For your reference regarding all app screen All app screen example. I am not able to find any help regarding this intent. Any help will be appreciated.enter image description here

When i click cancel from any dialog box it should exit application and user must land on the all apps screen.

sumit pandey
  • 1,223
  • 1
  • 15
  • 23

1 Answers1

1

I use:

Intent startMain = new Intent(Intent.ACTION_MAIN);
startMain.addCategory(Intent.CATEGORY_HOME);
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(startMain);
iaindownie
  • 1,046
  • 12
  • 28
  • 1
    It won't help, @iaindownie. Your code shows the home screen, not what he wants, the drawer (all apps) – Jose_GD Aug 24 '13 at 16:22