get File Size From Uri
static int getFileSizeFromUri(@NonNull() Uri uri, @NonNull() Context context)
Content copied to clipboard
Retrieves the file size of a Uri, if available.
Return
the filename
Parameters
uri
a Uri pointing to a file
context
Android context
Throws
if the Uri is not pointing to a file or the filesize was notavailable