Android Guides | Samples

Java.Lang.String Constructor

Converts the byte array to a String using the given charset.

Syntax

[Android.Runtime.Register(".ctor", "([BLjava/nio/charset/Charset;)V", "")]
public String (Byte[] p0, Charset p1)

Parameters

data
charset

Exceptions

TypeReason
NullPointerExceptionif data == null

Remarks

Converts the byte array to a String using the given charset.

[Android Documentation]

Requirements

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