getUriNameAndSize

Retrieves the name and size of a file referenced by the given uri.

Supports both "file" scheme URIs and "content" scheme URIs.

Receiver

The ContentResolver used to query content URIs.

Return

A UriNameAndSize object containing the file's name and size, or null name and -1 size if the information cannot be determined.

Parameters

uri

The Uri pointing to the file.