title: Wifi Direct Group Owner intent not functioning
body: <p>So I have an app that uses service discovery to connect multiple devices to one host. I start by setting everything up and then call WifiP2pManager.discoverServices(..). Then one device chooses to advertise the service (kind of like a game lobby). The other devices find it just fine and can connect no problem.</p>
  
  <p>The problem arises when one device has already hosted the service and tries to connect to a device that was connected to its service (It formed a persistent group and ignores all group owner intent values).
  Say we have a device A that hosts the service. Another device, B, connects to A, and A is the group owner and a persistent group is formed in the Wifi Direct Settings menu. Both finish using the app and decide to use it again at a later time. Now B decides to host the service. A tries to connect to B but ends up being group owner even though B is the one hosting the service because of the previous persistent connection.
  At the later time I set device B's GOI (group owner intent) to 15 (host) and device A's GOI to 0 and it totally ignores it. EDIT [Actually I am only setting device A's GOI because only one device calls connect.]</p>
  
  <p>My question is: Is there any way to remove old groups from the settings menu programmatically? Or do you have another suggestion on how to resolve my problem?</p>
  
  <p>I  have tried using WifiP2pManager.createGroup(..) to create a new group and this fixes the group owner problem temporarily but after starting the service and connecting twice with the same device, it connects to the old, remembered group, and doesn't appear connected to the program. This could be easily fixed by not allowing persistent groups, but it appears that is not available as an option yet.</p>