Skip to content

Instantly share code, notes, and snippets.

@xalexchen
Last active December 22, 2015 08:59
Show Gist options
  • Save xalexchen/6448592 to your computer and use it in GitHub Desktop.
Save xalexchen/6448592 to your computer and use it in GitHub Desktop.
safety use implicit intent
PackageManager packageManager = getPackageManager();
List<ResolveInfo> activities = packageManager.queryIntentActivities(intent, 0);
boolean isIntentSafe = activities.size() > 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment