I'm writing an app, which listens to GSM signal strength. I've created a service, in which I put the PhoneStateListener. The problem is, that PhoneStateListener does not listen to any changes while phone is in sleep mode. I really need to solve that problem, could anyone help me with this? I tried to use that code in onCreate() method:
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); wakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "call_lock"); wakeLock.acquire(); but it doesn't solve my problem, listener is still not listening in sleep mode. -- 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