is Media Document - Android Media

Android examples for Media:Media File

Description

is Media Document

Demo Code


//package com.java2s;

import android.net.Uri;

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

Related Tutorials