getFileInfoByUri

public static FileInfo getFileInfoByUri(Context context, Uri uri)

Gets file name, size, and type from a URI.

Return

FileInfo containing file name, size, and type

Parameters

context

context

uri

supports content:// and file:// schemes