I'm seriously confused...
The android documentation is VERY good, but is very limited in scope.
Say I have a device that calls createGroup(Channel,GroupInfoListener)
. When available, onGroupInfoAvailable(WifiP2pGroup)
gets called. At this point, the only device in the group is the owner. (Because the device that calls create group is the group owner)
From here, the group is set up, and all that needs to happen is to fill the group up with the client devices.
I'm not sure how it works from here, but I was thinking that either the client can join the group, with joinGroup
or the client can request to join, in which case the GroupOwner uses joinGroup
to join. The problem is, there is no joinGroup
Method. So how to hell does a peer add itself to the group, or how does a GroupOwner add a client to the group?