Android Intent Check isExternalStorageDocument(Uri uri)

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

Description

is External Storage Document

Parameter

Parameter Description
uri The Uri to check.

Return

Whether the Uri authority is ExternalStorageProvider.

Declaration

public static boolean isExternalStorageDocument(Uri uri) 

Method Source Code

//package com.java2s;

import android.net.Uri;

public class Main {
    /**/*from   ww  w .jav  a 2s. c  o  m*/
     * @param uri The Uri to check.
     * @return Whether the Uri authority is ExternalStorageProvider.
     */
    public static boolean isExternalStorageDocument(Uri uri) {
        return "com.android.externalstorage.documents".equals(uri
                .getAuthority());
    }
}

Related

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