is Uri Downloads Document - Android android.net

Android examples for android.net:Uri

Description

is Uri Downloads Document

Demo Code

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());
    }

}

Related Tutorials