is Downloads Document - Android Network

Android examples for Network:Uri

Description

is Downloads Document

Demo Code


//package com.java2s;

import android.net.Uri;

public class Main {
    /**/* w w w.j  a v a  2s .  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 Tutorials