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:
Kevin Hufnagle
2016-08-30 17:24:20 -07:00
parent 36f4638fe7
commit 4d215ad49c

View File

@@ -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);
}