【问题标题】:Wifi Direct Groups MemorisedWifi Direct 组记忆
【发布时间】:2013-03-10 20:30:13
【问题描述】:

如何删除 Wifi Direct 记忆的群组?

如果可以的话,删除组的功能是什么?

谢谢。

【问题讨论】:

标签: android wifi-direct


【解决方案1】:

唯一的方法是使用自省删除组:

Method deletePersistentGroupMethod = WifiP2pManager.class.getMethod("deletePersistentGroup", WifiP2pManager.Channel.class, int.class, WifiP2pManager.ActionListener.class);

for (int netid = 0; netid < 32; netid++) {
    deletePersistentGroupMethod.invoke(this.manager, this.channel, netid, null);
}

【讨论】:

    【解决方案2】:

    据我所知,Wi-Fi Direct 持久组尚未实现(在 Android API 级别 17 中)。 因此,您不必费心删除已记住的组,因为它们不存在(目前)。

    【讨论】:

      猜你喜欢
      • 2014-07-02
      • 2017-08-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多