getPath

public static String getPath(Context context, Uri uri)

Get a file path from a Uri. This will get the the path for Storage Access Framework Documents, as well as the _data field for the MediaStore and other file-based ContentProviders. Callers should check whether the path is local before assuming it represents a local file.

Author

paulburke

Parameters

context

The context.

uri

The Uri to query.