Thx I have look at WakeLock and put it in my code All is working now even in sleep mode For the dev who has the same pb as me: When start my app: PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "WLock");
When user starts polling: wakeLock.acquire(); When user stops polling: wakeLock.release(); Le mardi 10 juillet 2012 12:42:03 UTC+2, RichardC a écrit : > What Wakelock(s) are you holding? > > On Tuesday, July 10, 2012 9:53:46 AM UTC+1, bjcoredev wrote: >> >> Hi, >> >> My app have an UI but the user can start making HTTP polling on a >> server with a customizable interval. >> >> All is OK when the phone is not in sleep mode : (3G or wifi,background >> or foreground). >> >> But when i put the phone in sleep mode: >> >> Using wifi:OK >> Phone is charging (plugged) using 3G or wifi :OK >> >> But when using 3G and if the phone is not charging (not plugged), it >> seems that Android is blocking HTTP requests ! >> I can't use the USB debugging cause the phone is charging and all is >> OK in this case >> >> Any Ideas ? >> >> Thanks >> >> Nexus galaxy ICS 4.0.4 >> > -- 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

