0

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.

4

1 に答える 1

1

を使用しAlarmManagerます。デバイスをスリープモードから復帰させるタイマーベースのものは他にありません。

于 2013-04-28T16:49:32.507 に答える