Nathan Karthikesu
Nathan Karthikesu

Reputation: 41

Wifi Direct Groups Memorised

How can I delete the groups memorised by Wifi Direct?

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

thanks.

Upvotes: 4

Views: 1460

Answers (2)

rsommerard
rsommerard

Reputation: 540

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

Upvotes: 1

Fabien Demangeat
Fabien Demangeat

Reputation: 934

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

Upvotes: 0

Related Questions