Hi, I made it work! Just swapped steps 2 and 3 on server So on server new order is
1. Initialize and Start WiFi Direct 2. Register a Local Service and Start Service Discovery 3. Start a Wifi Direct Group With old oder one thing I found was that the client was not getting any notification regarding a successful connection once a connection is established. But at the same time server receives notification that network is formed. So I assume that once connection was made by server the server may be passing some acknowledgement back to the client. With previous oder server was blocked some how. I am not 100% sure about my inference. If you think differently let me know. Thanks On Tuesday, October 23, 2012 5:38:46 PM UTC+1, Zach wrote: > > Hi, > > I am working on wifi direct with network service discovery. Heres what I > do for that > > For a Server(Device which first starts) > > 1. Initialize and Start Wifi Direct > 2. Start a WifiDirect Group > 3. Register a Local Service and Start service discovery > > > For a client(All devices which starts after the first one) > > 1. Initialize and Start wifi direct > 2. Check for Group owners, store details of group owner found > 3. If found Register local service and start service discovery > 4. When new device info is available via NSD, checks whether its the > type of device expecting;add it to data structure > 5. For all devices in data structure identify wifi direct group owner > and establish a connection with it > > > Things go wrong from here, after establishing a connection I am expecting > a call back to onConnectionInfo available; but it never happens on client > device. > > If I am not starting NSD everything works fine. I am getting a callback to > onConnectionInfo available immediately after connecting with remote > device(GO). > I was following this tutorial > http://developer.android.com/training/connect-devices-wirelessly/nsd-wifi-direct.html > > Whats going wrong here? > Many Thanks > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en