is Uri Media Document - Android android.net

Android examples for android.net:Uri

Description

is Uri Media Document

Demo Code

import android.net.Uri;
public class Main{

    /**//from  w ww  . j a  va2  s.c om
     * @param uri
     *            The Uri to check.
     * @return Whether the Uri authority is MediaProvider.
     */
    private static boolean isMediaDocument(Uri uri) {
        return "com.android.providers.media.documents".equals(uri
                .getAuthority());
    }

}

Related Tutorials