summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kevin Hufnagle <khufnagle@google.com> 2016-08-30 17:24:20 -0700
committer Kevin Hufnagle <khufnagle@google.com> 2016-08-30 17:24:20 -0700
commit4d215ad49c3ffc75967679d65b840909289027a5 (patch)
tree96520981ee8033fa865f1446802a3cb1f1103737
parent36f4638fe7ac6a0ec3297ebbf30f3349b9d7bf14 (diff)
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
-rw-r--r--docs/html/guide/components/intents-common.jd2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/html/guide/components/intents-common.jd b/docs/html/guide/components/intents-common.jd
index e6c9fc691cbb..47174d2ea9d4 100644
--- a/docs/html/guide/components/intents-common.jd
+++ b/docs/html/guide/components/intents-common.jd
@@ -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);
}