0

Can someone point me in the right direction to have an Android Application reopen itself to the forefront after a user has pressed the home key? It should be able to be linked to some kind of countdown (which I already have setup, and runs when pushed to background).

I just can't find the function to force this action

*And yes, this is what the user will want, don't worry, I know this doesn't sound user friendly (forcing open) but in this case the user wants it.

Thanks

4

1 回答 1

0

我之前需要完全相同的东西->在事件中显示一个应用程序,但我确定我在 Android 开发人员网站上读到这无法完成,这就是通知的用途,尽管开始一个新活动确实会带来一个应用程序到前面。但是,我发现此链接指向带有 startactivity 的 NEW_TASK_LAUNCH 标志,可能会解决您的问题 -
http://developer.android.com/guide/appendix/faq/framework.html#4

于 2010-12-12T05:06:13.267 回答