开发者

Android App Timed Pop Up from Background Service

开发者 https://www.devze.com 2023-01-29 04:05 出处:网络
How can an Android A开发者_如何学Gopp be set on a timer to popup from the background? Basically, a countdown is setup within the application, user then clicks HOME button, and then when the timer goe

How can an Android A开发者_如何学Gopp be set on a timer to popup from the background?

Basically, a countdown is setup within the application, user then clicks HOME button, and then when the timer goes off, it returns the user back to the program.

I found a function moveToBack() but moveToFront or Foreground doesn't work.

This should be exactly like an alarm clock program, but I can't seem to find how to do it.

Thanks


AlarmManager is your friend. You can set it up to start an intent after a certain amount of time.

0

精彩评论

暂无评论...
验证码 换一张
取 消