Wifi Direct Groups Memorised

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 23:32:41

问题


How can I delete the groups memorised by Wifi Direct?

If it is possible, what is the function allowing to delete groups?

thanks.


回答1:


Wi-Fi Direct Persistent groups are not implemented yet as far as I know (in Android API level 17). So you don't have to bother deleting memorised groups as they don't exists (yet).




回答2:


The only way is to delete groups with introspection:

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);
}


来源:https://stackoverflow.com/questions/15327217/wifi-direct-groups-memorised

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!