From 4d215ad49c3ffc75967679d65b840909289027a5 Mon Sep 17 00:00:00 2001
From: Kevin Hufnagle
Date: Tue, 30 Aug 2016 17:24:20 -0700
Subject: 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
---
docs/html/guide/components/intents-common.jd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'docs/html/guide')
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.
Example intent:
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);
}
--
cgit v1.2.3-59-g8ed1b