4

How can I delete the groups memorised by Wifi Direct?

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

thanks.

2 Answers2

1

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);
}
rsommerard
  • 460
  • 1
  • 6
  • 18
0

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).

Fabien Demangeat
  • 935
  • 8
  • 12