Hi, I am trying to create a network group with wifi direct. I have come across two methods
1. public void connect (WifiP2pManager.Channel<http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.Channel.html> c, WifiP2pConfig<http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pConfig.html> config, WifiP2pManager.ActionListener<http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.ActionListener.html> listener) Start a p2p connection to a device with the specified configuration. 2. public void createGroup (WifiP2pManager.Channel<http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.Channel.html> c, WifiP2pManager.ActionListener<http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.ActionListener.html> listener) Create a p2p group with the current device as the group owner. This essentially creates an access point that can accept connections from legacy clients as well as other p2p devices. whats the basic difference two? Do I need to *call connect on every device to add them to the group*? Or whether *createGroup() will automatically establish a network* with available peers and* for every new peer I have to call connect()* to add it to the group? How can I properly create a group? How does the concept pf group works? Thanks for your help! -- 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

