docs: Wi-Fi settings example now uses Settings constant correctly
The constant ACTION_WIFI_SETTINGS is part of the Settings class, not the Intent class. An example intent for opening settings has been changed to reflect this class structure. Bug: 17464977 Change-Id: I160354a11392ad001c127525983a1b84a4dfbe00
This commit is contained in:
@@ -2155,7 +2155,7 @@ that are available.</p>
|
||||
<p><b>Example intent:</b></p>
|
||||
<pre>
|
||||
public void openWifiSettings() {
|
||||
Intent intent = new Intent(Intent.ACTION_WIFI_SETTINGS);
|
||||
Intent intent = new Intent(Settings.ACTION_WIFI_SETTINGS);
|
||||
if (intent.resolveActivity(getPackageManager()) != null) {
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user