Sunday, April 28, 2013

[android help] Awake phone from sleep with chronometer timer


I am making an interval timer for a stopwatch APP, and I'm using chronometer to display notifications (Run, walk, stop) and play sound. But when the phone is in sleepmode it doesn't do anything.


Is there a way to wake up the phone, to show these notifications (and play the sound), or must I use AlarmManager?


I know how to make the phone stay awake with wakelock and FLAG_KEEP_SCREEN_ON, but I don't know how to awake it from sleep.



.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...