java - Udp Broadcast not receiving on screen off -


i want send message (question:if particular file available or not) , want answer other android devices (if file available:yes).for sending udp broadcast message on local network ask devices @ once , afterwards sending file tcp protocol works fine. android device doesn't receive udp messages on screen off. have acquired wake lock , multicast lock in broadcast receiver detects screen off doesn't work.please help! thanks..

 powermanager powermanager =              (powermanager)context.getsystemservice(context.power_service); powermanager.wakelock wakelock =  powermanager.newwakelock(powermanager.partial_wake_lock, "mywakelocktag");         wakelock.acquire();     wifimanager.multicastlock multicastlock = wifimanager.createmulticastlock("lockwifimulticast");                                 multicastlock.acquire();           wifimanager.wifilock wifilock = wifimanager.createwifilock(wifimanager.wifi_mode_full_high_perf,"mywifilock");                                 wifilock.acquire(); 


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -