Sdílet prostřednictvím


TelephonyManager.ExtraLastKnownNetworkCountry Field

Definition

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

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

Field Value

Attributes

Remarks

The extra used with an #ACTION_NETWORK_COUNTRY_CHANGED to specify the last known the country code in ISO-3166-1 alpha-2 format. This might be an empty string when the country code was never available. The last known country code persists across reboot.

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

Java documentation for android.telephony.TelephonyManager.EXTRA_LAST_KNOWN_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