Language

PhoneNumberUtils.NetworkPortionToCalledPartyBCD(String) Method

Definition

Note: calls extractNetworkPortion(), so do not use for SIM EF[ADN] style records

[Android.Runtime.Register("networkPortionToCalledPartyBCD", "(Ljava/lang/String;)[B", "")]
public static byte[]? NetworkPortionToCalledPartyBCD(string? s);
[<Android.Runtime.Register("networkPortionToCalledPartyBCD", "(Ljava/lang/String;)[B", "")>]
static member NetworkPortionToCalledPartyBCD : string -> byte[]

Parameters

s
String

The phone-number text whose network portion is to be encoded.

Returns

Byte[]

The BCD network number with a type-of-address byte, or null when the network portion is empty or consists only of a plus sign.

Attributes

Remarks

Note: calls extractNetworkPortion(), so do not use for SIM EF[ADN] style records

Returns null if network portion is empty.

Java documentation for android.telephony.PhoneNumberUtils.networkPortionToCalledPartyBCD(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