public static boolean isFileUri(final Uri uri) {
        if (uri == null) {
            return false;
        }
        return SCHEME_FILE.equals(uri.getScheme());
    }
Returns whether this Uri is a file Uri
main/src/main/java/cgeo/geocaching/utils/UriUtils.java