public static boolean isLocalFileUri(@Nullable Uri uri){
  final String scheme=getSchemeOrNull(uri);
  return LOCAL_FILE_SCHEME.equals(scheme);
}

public static boolean isLocalFileUri ( @ Nullable Uri uri ) { final String scheme = getSchemeOrNull ( uri ) ; return LOCAL_FILE_SCHEME . equals ( scheme ) ; }
check if uri represents local file
