Android App Timed Pop Up from Background Service
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.
精彩评论