Created
February 25, 2016 13:58
-
-
Save SammyVimes/ab24b44ca25534f4f8c8 to your computer and use it in GitHub Desktop.
Get all launcher (homescreen) apps in android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PackageManager pm = ctx.getPackageManager(); | |
Intent i = new Intent(Intent.ACTION_MAIN); | |
i.addCategory(Intent.CATEGORY_HOME); | |
i.addCategory(Intent.CATEGORY_DEFAULT); | |
List l = pm.queryIntentActivities(i, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment