AssetManager.List(String) Method

Definition

Return a String array of all the assets at the given path.

[Android.Runtime.Register("list", "(Ljava/lang/String;)[Ljava/lang/String;", "")]
public string[]? List (string path);
[<Android.Runtime.Register("list", "(Ljava/lang/String;)[Ljava/lang/String;", "")>]
member this.List : string -> string[]

Parameters

path
String

A relative path within the assets, i.e., "docs/home.html".

Returns

String[]

String[] Array of strings, one for each asset. These file names are relative to 'path'. You can open the file by concatenating 'path' and a name in the returned string (via File) and passing that to open().

Attributes

Exceptions

Remarks

Return a String array of all the assets at the given path.

Java documentation for android.content.res.AssetManager.list(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

See also