保持服务即使手机处于关机状态运行状态、手机

由网友(ˋ那不可一世的小稀罕〝)分享简介:我正在开发一个应用程序的提醒中,我运行一个后台进程,我想保持它始终在运行,这样即使手机关机,服务应该提醒定于该提醒用户手机之后那个特定的时间开启。I'm developing a reminder app in which I'm running a background process and I want to...

我正在开发一个应用程序的提醒中,我运行一个后台进程,我想保持它始终在运行,这样即使手机关机,服务应该提醒定于该提醒用户手机之后那个特定的时间开启。

I'm developing a reminder app in which I'm running a background process and I want to keep it running always so that even if the phone is switched off, the service should remind the user of the reminders that were scheduled for that particular time after the phone is switched on.

是否有可能或者我需要管理它自己?

Is it possible or I need to manage it myself?

任何人都可以请帮助?

感谢名单提前。

推荐答案

所以你只是想用户2得到通知,当他把他的电话,说有一个提醒,当您的手机是关闭的。

so you simply want the user 2 get notified, when he turns his phone ON, that there was a reminder, when your phone was off.

做的一件事,尽快启动您的应用程序的手机开始。对,你将有2听2的启动广播,并开始您的应用程序。

do one thing start your app as soon as phone starts. for that you will have 2 listen 2 the start up broadcast and start your app.

然后简单地比较present时间与提醒设置的时间.. 并通知用户.....

then simply compare the present time with the time set in the reminder.. and the notify the user.....

您可以在google 2找出哪些播出你有2个免费获赠和流程启动您的应用程序在手机启动...

you can google 2 find out which broadcast you have 2 recieve and process for starting your application at startup of phone...

但我认为这链接可以帮助你......

but i think this link might help you.....

阅读全文

相关推荐

最新文章