Java tutorial
//package com.java2s; import android.net.Uri; public class Main { /** * @param uri The Uri to check. * @return Whether the Uri authority is DownloadsProvider. */ public static boolean isDownloadsDocument(final Uri uri) { return "com.android.providers.downloads.documents".equals(uri.getAuthority()); } }