Android Intent Check isDownloadsDocument(Uri uri)

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

Description

is Downloads Document

Parameter

Parameter Description
uri The Uri to check.

Return

Whether the Uri authority is DownloadsProvider.

Declaration

public static boolean isDownloadsDocument(Uri uri) 

Method Source Code

//package com.java2s;

import android.net.Uri;

public class Main {
    /**// w  w  w.ja  va 2  s .c  o  m
     * @param uri The Uri to check.
     * @return Whether the Uri authority is DownloadsProvider.
     */
    public static boolean isDownloadsDocument(Uri uri) {
        return "com.android.providers.downloads.documents".equals(uri
                .getAuthority());
    }
}

Related

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