is External Storage Document - Android android.provider

Android examples for android.provider:MediaStore

Description

is External Storage Document

Demo Code

import android.net.Uri;

public class Main{

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

}

Related Tutorials