Android Intent Check isMediaDocument(Uri uri)

Here you can find the source of isMediaDocument(Uri uri)

Description

is Media Document

Parameter

Parameter Description
uri The Uri to check.

Return

Whether the Uri authority is MediaProvider.

Declaration

public static boolean isMediaDocument(Uri uri) 

Method Source Code

//package com.java2s;

import android.net.Uri;

public class Main {
    /**//  www.  j  a  va  2 s  .  c o m
     * @param uri The Uri to check.
     * @return Whether the Uri authority is MediaProvider.
     */
    public static boolean isMediaDocument(Uri uri) {
        return "com.android.providers.media.documents".equals(uri
                .getAuthority());
    }
}

Related

  1. genPendingBroadcast(Context context, int requestCode, Intent broadcastIntent)
  2. isIntentAvailable(@Nonnull Context context, @Nonnull String action)
  3. isIntentAvailable(Context context, String action)
  4. isDownloadsDocument(Uri uri)
  5. isExternalStorageDocument(Uri uri)
  6. isCallable(Context c, Intent intent)
  7. isCommonIntentUrl(String url)
  8. isIntentAvailable(final Context context, final String action)
  9. isIntentUrl(String url)