Android examples for android.net:Uri
is Uri Media Document
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()); } }