On Fri, Oct 12, 2012 at 3:19 AM, Zachariah Tom <[email protected]>wrote:

> Hi,
>
> I want to disconnect from a wifi direct group after establishing a
> connection. I just want to move out silently without interrupting other
> clients that are already in connection with the Group owner.
>
> I use *manager.Connect()* method to establish a connection. But didnt see
> any methods to disconnect. Only other option i saw is *
> manager.removeGroup()*, but I guess this will remove the entire group and
> interrupt the existing network connection.
>
removeGroup() is what you need. It removes the group from your perspective
- it is up to the group owner to decide whether to remove the group after
the client has left or not. In case of android, a GO will keep the group
until all clients have gone.


> Inside the device settings. once connected I can disconnect by clicking it
> again. I want to achieve the same via code.
>
>
> I am using Samsung Nexus with JellyBean 4.1.1
>
> How can I do this properly?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to