void init(Context ctx, ChannelListener lsn) {
wifip2p = (WifiP2pManager) ctx.getSystemService(WIFI_P2P_SERVICE);
channel = wifip2p.initialize(ctx, ctx.getMainLooper(), lsn);
if (wifip2p != null && channel != null) {
isWifiP2pEnabled = true;
status = STA_P2P_INITED;
} else {
isWifiP2pEnabled = false;
status = STA_P2P_UNINIT;
}
}
WiFiP2PManager.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:nfcspy
作者:
评论列表
文章目录