private boolean isSpecializedHandlerAvailable(Intent intent){
  PackageManager pm=mActivity.getPackageManager();
  List<ResolveInfo> handlers=pm.queryIntentActivities(intent,PackageManager.GET_RESOLVED_FILTER);
  if (handlers == null || handlers.size() == 0) {
    return false;
  }
  for (  ResolveInfo resolveInfo : handlers) {
    IntentFilter filter=resolveInfo.filter;
    if (filter == null) {
      continue;
    }
    if (filter.countDataAuthorities() == 0 && filter.countDataPaths() == 0) {
      continue;
    }
    return true;
  }
  return false;
}

private boolean isSpecializedHandlerAvailable ( Intent intent ) { PackageManager pm = mActivity . getPackageManager ( ) ; List < ResolveInfo > handlers = pm . queryIntentActivities ( intent , PackageManager . GET_RESOLVED_FILTER ) ; if ( handlers == null || handlers . size ( ) == 0 ) { return false ; } for ( ResolveInfo resolveInfo : handlers ) { IntentFilter filter = resolveInfo . filter ; if ( filter == null ) { continue ; } if ( filter . countDataAuthorities ( ) == 0 && filter . countDataPaths ( ) == 0 ) { continue ; } return true ; } return false ; }
search for intent handlers that are specific to this url aka , specialized apps like google maps or youtube
