2
回答
关于Android中的移动网络部分的问题
极速云服务器,低至1.04元/天>>>   

android.net.wifi.STATE_CHANGE

android.net.wifi.WIFI_STATE_CHANGED,

与这2句对应的移动数据的语句是什么。

举报
JadeShaw
发帖于6年前 2回/296阅
共有2个答案 最后回答: 6年前

引用android reference:

Broadcast intent action indicating that Wi-Fi has been enabled, disabled, enabling, disabling, or unknown. One extra provides this state as an int. Another extra provides the previous state, if available.



Broadcast intent action indicating that the state of Wi-Fi connectivity has changed. One extra provides the new state in the form of a NetworkInfo object. If the new state is CONNECTED, additional extras may provide the BSSID and WifiInfo of the access point. as a String.


android.net.wifi.WIFI_STATE_CHANGED,
Broadcast intent action indicating that Wi-Fi has been enabled, disabled, enabling, disabling, or unknown. One extra provides this state as an int. Another extra provides the previous state, if available.

android.net.wifi.STATE_CHANGE
Broadcast intent action indicating that the state of Wi-Fi connectivity has changed. One extra provides the new state in the form of a NetworkInfo object. If the new state is CONNECTED, additional extras may provide the BSSID and WifiInfo of the access point. as a String.

顶部