public static boolean isMediaDocument(Uri uri) {
        return "com.android.providers.media.documents".equals(uri.getAuthority());
    }
@param uri The Uri to check.
@return Whether the Uri authority is MediaProvider.
sample/src/main/java/com/fenctose/imagecropper/BitmapUtils.java