Udostępnij za pośrednictwem


Settings.ExtraEasyConnectAttemptedSsid Field

Definition

Activity Extra: The SSID that the Enrollee tried to connect to.

[Android.Runtime.Register("EXTRA_EASY_CONNECT_ATTEMPTED_SSID", ApiSince=30)]
public const string ExtraEasyConnectAttemptedSsid;
[<Android.Runtime.Register("EXTRA_EASY_CONNECT_ATTEMPTED_SSID", ApiSince=30)>]
val mutable ExtraEasyConnectAttemptedSsid : string

Field Value

Attributes

Remarks

Activity Extra: The SSID that the Enrollee tried to connect to.

An extra returned on the result intent received when using the #ACTION_PROCESS_WIFI_EASY_CONNECT_URI intent to launch the Easy Connect Operation. This extra contains the SSID of the Access Point that the remote Enrollee tried to connect to. This value is populated only by remote R2 devices, and only for the following error codes: android.net.wifi.EasyConnectStatusCallback#EASY_CONNECT_EVENT_FAILURE_CANNOT_FIND_NETWORKandroid.net.wifi.EasyConnectStatusCallback#EASY_CONNECT_EVENT_FAILURE_ENROLLEE_AUTHENTICATION. Therefore, always check if this extra is available using Intent#hasExtra(String). If there is no error, i.e. if the operation returns android.app.Activity#RESULT_OK, then this extra is not attached to the result intent.

Use the Intent#getStringExtra(String) to obtain the SSID.

Java documentation for android.provider.Settings.EXTRA_EASY_CONNECT_ATTEMPTED_SSID.

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