Android Intent Check isIntentUrl(String url)

Here you can find the source of isIntentUrl(String url)

Description

is Intent Url

License

Open Source License

Declaration

public static boolean isIntentUrl(String url) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isIntentUrl(String url) {
        return isCommonIntentUrl(url) || isPlayMarketIntentUrl(url);
    }// w ww.ja  v  a 2 s .  c  o m

    public static boolean isCommonIntentUrl(String url) {
        return url.startsWith("tel:") || url.startsWith("voicemail:")
                || url.startsWith("sms:") || url.startsWith("mailto:")
                || url.startsWith("geo:")
                || url.startsWith("google.streetview:");
    }

    public static boolean isPlayMarketIntentUrl(String url) {
        return url.startsWith("market:");
    }
}

Related

  1. isExternalStorageDocument(Uri uri)
  2. isMediaDocument(Uri uri)
  3. isCallable(Context c, Intent intent)
  4. isCommonIntentUrl(String url)
  5. isIntentAvailable(final Context context, final String action)
  6. isPlayMarketIntentUrl(String url)
  7. isIntentAvailable(Context context, String action)
  8. isIntentAvailable(@Nonnull Context context, @Nonnull String action)