Android Guides | Samples

Java.Lang.Class.GetResourceAsStream Method

Returns a read-only stream for the contents of the given resource, or null if the resource is not found.

Syntax

[Android.Runtime.Register("getResourceAsStream", "(Ljava/lang/String;)Ljava/io/InputStream;", "")]
public Stream GetResourceAsStream (String resName)

See Also

Parameters

resourceName

Remarks

Returns a read-only stream for the contents of the given resource, or null if the resource is not found. The mapping between the resource name and the stream is managed by the class' class loader.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1