summaryrefslogtreecommitdiffstats
path: root/wifi/java/android/net
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2013-03-21 12:06:27 -0700
committerIrfan Sheriff <isheriff@google.com>2013-03-21 12:27:20 -0700
commit7b7beb7952440ee2e255694b7b19e60abae93dc0 (patch)
tree9583b84ed81d5930ed67393b90b259a2c99145fe /wifi/java/android/net
parent71b0017759b825f8bddcdda7425afc802e8918c9 (diff)
downloadframeworks_base-7b7beb7952440ee2e255694b7b19e60abae93dc0.zip
frameworks_base-7b7beb7952440ee2e255694b7b19e60abae93dc0.tar.gz
frameworks_base-7b7beb7952440ee2e255694b7b19e60abae93dc0.tar.bz2
Notify user when wi-fi is toggled about scans
We let the user know when he turns off Wi-Fi that scans will continue to be available. User has the option to turn off the dialog and not receive this in the future. Bug: 8141918 Change-Id: I115ce2ac57125b8ffbb34245dc25effd4b3bebb0
Diffstat (limited to 'wifi/java/android/net')
-rw-r--r--wifi/java/android/net/wifi/WifiManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java
index f654310..0c0a144 100644
--- a/wifi/java/android/net/wifi/WifiManager.java
+++ b/wifi/java/android/net/wifi/WifiManager.java
@@ -408,6 +408,15 @@ public class WifiManager {
"android.net.wifi.action.REQUEST_SCAN_ALWAYS_AVAILABLE";
/**
+ * Activity Action: Show a system activity that notifies the user that
+ * scanning is still available when Wi-Fi is turned off
+ * @hide
+ */
+ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
+ public static final String ACTION_NOTIFY_SCAN_ALWAYS_AVAILABLE =
+ "android.net.wifi.action.NOTIFY_SCAN_ALWAYS_AVAILABLE";
+
+ /**
* Activity Action: Pick a Wi-Fi network to connect to.
* <p>Input: Nothing.
* <p>Output: Nothing.