lunedì 24 dicembre 2012

Checking Intent Availability in Android | Grokking Android

Good article for check package installation

public static boolean isAvailable(Context ctx, Intent intent) {
final PackageManager mgr = ctx.getPackageManager();
  List list =
  mgr.queryIntentActivities(intent,
  PackageManager.MATCH_DEFAULT_ONLY);
  return list.size() > 0;
}

Checking Intent Availability in Android | Grokking Android

Nessun commento:

Posta un commento