Lines Matching refs:wifiManager
11 import android.net.wifi.WifiManager;
48 intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
61 WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
63 if (!wifiManager.isWifiEnabled()) {
64 wifiManager.setWifiEnabled(true);
78 doConnect(wifiManager);
84 private void doConnect(WifiManager wifiManager) {
85 int networkId = wifiManager.addNetwork(mCurrentWifiConfiguration);
91 wifiManager.connect(networkId,
92 new WifiManager.ActionListener() {
131 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
132 int wifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, 0);
134 && wifiState == WifiManager.WIFI_STATE_ENABLED) {
137 (WifiManager) ConfirmConnectToWifiNetworkActivity.this