2013-03-10 40 views
3

如何删除Wifi Direct存储的群组?Wifi直拨组记忆

如果可能,允许删除组的功能是什么?

谢谢。

+1

这里是[无线网络连接管理器](http://developer.android.com/reference/android/net/wifi/WifiManager.html )。 – 2013-03-10 20:33:24

+0

是的!请参阅 - > http://stackoverflow.com/a/26242221/1815624没有... – CrandellWS 2016-02-09 03:12:17

回答

0

Wi-Fi Direct据我所知(在Android API级别17中),尚未实现持久组。 所以你不必费心去删除记忆的组,因为它们不存在(还)。

0

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

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