[android-developers] Service Discovery is not happening when screen is off

2011-08-12 Thread SREEHARI
Hi, My application runs a service which can announce the Upnp discovery through Wifi. The device is getting discovered in Cling work bench. But when the screen is off, the device is not getting discovered. I tried Wakelock and Wifilock, but still its not working. I changed the sleep policy in

Re: [android-developers] Service Discovery is not happening when screen is off

2011-08-12 Thread Irfan Sheriff
If it is related to multicast packets getting dropped, try creating a multicast lockhttp://developer.android.com/reference/android/net/wifi/WifiManager.MulticastLock.html If needed, use the WIFI_MODE_FULL_HIGH_PERF mode with care to avoid driver optimizations at screen off. Thanks On Fri, Aug