WiFiP2PManager.java 文件源码

java
阅读 34 收藏 0 点赞 0 评论 0

项目:nfcspy 作者:
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;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号