5

I would like to know if we can receive information via broadcastreceiver (onReceive) to know that if user enable/disable "Portable Wi-Fi Hotspot" (Settings->Wireless &Networks->Tethering & portable hotspot).

Since I found that I am not able to use android.net.wifi.WifiManager to monitor this at ICE Cream version.

Does anyone can share some hints to me?

4

1 回答 1

1

您可以使用名为“android.net.wifi.WIFI_AP_STATE_CHANGED”的操作来监控 WiFi-AP 上的状态变化。

http://androidxref.com/4.0.4/xref/frameworks/base/wifi/java/android/net/wifi/WifiManager.java#132

于 2013-02-03T06:01:18.917 回答