public WifiApEnabler(Context context, SwitchPreference switchPreference,
OnStateChangeListener listener, WifiApClientsProgressCategory clientsCategory) {
mContext = context;
mSwitch = switchPreference;
mListener = listener;
mClientsCategory = clientsCategory;
mWaitForWifiStateChange = false;
mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
mWifiApManager = new WifiApManager(context);
mIntentFilter = new IntentFilter("android.net.wifi.WIFI_AP_STATE_CHANGED");
mIntentFilter.addAction("android.net.conn.TETHER_STATE_CHANGED");
mIntentFilter.addAction(Intent.ACTION_AIRPLANE_MODE_CHANGED);
mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
}
WifiApEnabler.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:WiFiAPManager
作者:
评论列表
文章目录