Share via


CarrierConfigManager.KeyCarrierServiceNumberStringArray Field

Definition

String array containing the list of service numbers provided by carriers.

[Android.Runtime.Register("KEY_CARRIER_SERVICE_NUMBER_STRING_ARRAY", ApiSince=34)]
public const string KeyCarrierServiceNumberStringArray;
[<Android.Runtime.Register("KEY_CARRIER_SERVICE_NUMBER_STRING_ARRAY", ApiSince=34)>]
val mutable KeyCarrierServiceNumberStringArray : string

Field Value

Attributes

Remarks

String array containing the list of service numbers provided by carriers. This key should be used with #KEY_CARRIER_SERVICE_NAME_STRING_ARRAY. The numbers provided in this array will be mapped 1:1 with the names provided in the #KEY_CARRIER_SERVICE_NAME_STRING_ARRAY array.

The data would be considered valid if and only if:

<ul> <li>The number of items in both the arrays are equal <li>The item added in this key follows a specific format. Either it should be all numbers, or "+" followed by all numbers. </ul>

Example:

<code>
<string-array name="carrier_service_number_array" num="2">
<item value="123"/>
<item value="+343"/>
</string-array>
</code>

Java documentation for android.telephony.CarrierConfigManager.KEY_CARRIER_SERVICE_NUMBER_STRING_ARRAY.

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