Share via


TelephonyManager.ExtraNetworkCountry Field

Definition

The extra used with an #ACTION_NETWORK_COUNTRY_CHANGED to specify the the country code in ISO-3166-1 alpha-2 format.

[Android.Runtime.Register("EXTRA_NETWORK_COUNTRY", ApiSince=29)]
public const string ExtraNetworkCountry;
[<Android.Runtime.Register("EXTRA_NETWORK_COUNTRY", ApiSince=29)>]
val mutable ExtraNetworkCountry : string

Field Value

Attributes

Remarks

The extra used with an #ACTION_NETWORK_COUNTRY_CHANGED to specify the the country code in ISO-3166-1 alpha-2 format. This is the same country code returned by #getNetworkCountryIso(). This might be an empty string when the country code is not available.

<p class="note"> Retrieve with android.content.Intent#getStringExtra(String).

Java documentation for android.telephony.TelephonyManager.EXTRA_NETWORK_COUNTRY.

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