AssetManager.OpenNonAssetFd Method

Definition

Overloads

OpenNonAssetFd(String)

Open a non-asset as an asset by mmapping it and returning an AssetFileDescriptor.

OpenNonAssetFd(Int32, String)

Open a non-asset as an asset by mmapping it and returning an AssetFileDescriptor.

OpenNonAssetFd(String)

Open a non-asset as an asset by mmapping it and returning an AssetFileDescriptor.

[Android.Runtime.Register("openNonAssetFd", "(Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor;", "")]
public Android.Content.Res.AssetFileDescriptor OpenNonAssetFd (string fileName);
[<Android.Runtime.Register("openNonAssetFd", "(Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor;", "")>]
member this.OpenNonAssetFd : string -> Android.Content.Res.AssetFileDescriptor

Parameters

fileName
String

Name of the asset to retrieve.

Returns

Attributes

Exceptions

Remarks

Open a non-asset as an asset by mmapping it and returning an AssetFileDescriptor. This provides direct access to all of the files included in an application package (not only its assets). Applications should not normally use this.

The asset must not be compressed, or an exception will be thrown.

Java documentation for android.content.res.AssetManager.openNonAssetFd(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

OpenNonAssetFd(Int32, String)

Open a non-asset as an asset by mmapping it and returning an AssetFileDescriptor.

[Android.Runtime.Register("openNonAssetFd", "(ILjava/lang/String;)Landroid/content/res/AssetFileDescriptor;", "")]
public Android.Content.Res.AssetFileDescriptor OpenNonAssetFd (int cookie, string fileName);
[<Android.Runtime.Register("openNonAssetFd", "(ILjava/lang/String;)Landroid/content/res/AssetFileDescriptor;", "")>]
member this.OpenNonAssetFd : int * string -> Android.Content.Res.AssetFileDescriptor

Parameters

cookie
Int32

Identifier of the package to be opened.

fileName
String

Name of the asset to retrieve.

Returns

Attributes

Exceptions

Remarks

Open a non-asset as an asset by mmapping it and returning an AssetFileDescriptor. This provides direct access to all of the files included in an application package (not only its assets). Applications should not normally use this.

The asset must not be compressed, or an exception will be thrown.

Java documentation for android.content.res.AssetManager.openNonAssetFd(int, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to