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