Android examples for android.net:Uri
is Uri Downloads Document
import android.net.Uri; public class Main{ /**//ww w .j av a 2 s . c o m * @param uri * The Uri to check. * @return Whether the Uri authority is DownloadsProvider. */ private static boolean isDownloadsDocument(Uri uri) { return "com.android.providers.downloads.documents".equals(uri .getAuthority()); } }