Android examples for android.net:Uri
is Media Uri
import android.net.Uri; public class Main{ /**/* w w w . j a v a 2s .c o m*/ * @return True if Uri is a MediaStore Uri. * @author paulburke */ public static boolean isMediaUri(Uri uri) { return "media".equalsIgnoreCase(uri.getAuthority()); } }