Android examples for android.media:Media Uri
is Media Content Uri
import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.provider.MediaStore; import android.util.Log; public class Main{ /**/*from w w w .j a v a 2 s . co m*/ * Checks if the parameter {@link Uri} is a Media content uri. ****/ public static boolean isMediaContentUri(Uri uri) { if (!uri.toString().contains("content://media/")) { return false; } else { return true; } } }