is Uri External Storage Document - Android android.net

Android examples for android.net:Uri

Description

is Uri External Storage Document

Demo Code

import android.net.Uri;
public class Main{

    /**/* w  w  w  .  ja v a  2  s.c  o m*/
     * @param uri
     *            The Uri to check.
     * @return Whether the Uri authority is ExternalStorageProvider.
     */
    private static boolean isExternalStorageDocument(Uri uri) {
        return "com.android.externalstorage.documents".equals(uri
                .getAuthority());
    }

}

Related Tutorials