is External Storage Document - Android Network

Android examples for Network:Uri

Description

is External Storage Document

Demo Code


//package com.java2s;

import android.net.Uri;

public class Main {
    /**//from ww  w  . j a  v  a2  s .com
     * @param uri The Uri to check.
     * @return Whether the Uri authority is ExternalStorageProvider.
     */
    public static boolean isExternalStorageDocument(Uri uri) {
        return "com.android.externalstorage.documents".equals(uri
                .getAuthority());
    }
}

Related Tutorials