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.
app/src/main/java/com/zhao/myreader/util/UriFileUtil.java