Created
February 6, 2018 18:49
-
-
Save nevack/0f13ab5932a64e43404a731f8a77bda7 to your computer and use it in GitHub Desktop.
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
final PackageManager manager = context.getPackageManager(); | |
Intent intent = new Intent(Intent.ACTION_MAIN); | |
intent.addCategory(Intent.CATEGORY_LAUNCHER); | |
final List<ResolveInfo> apps = manager.queryIntentActivities(intent, PackageManager.GET_META_DATA); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment