2013-03-10 51 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); 
}