getFileLengthWithUri

public static long getFileLengthWithUri(Context pContext, Uri pUri)

Gets the file length. Returns -1 if the file does not exist.

Return

Returns the file length if the file exists.

Parameters

pContext

The context

pUri

The file Uri