openAssetFile

Opens an asset file from the app's assets directory.

Return

An AssetFileDescriptor for the requested asset.

Parameters

uri

The URI whose asset file is to be opened. The path portion of this URI should correspond to the asset path relative to the assets directory.

mode

Access mode for the file. This provider only supports read mode ("r").

Throws

If the asset cannot be found or is compressed.