保持服务即使手机处于关机状态运行 [英] Keep service running even if the phone is switched off

查看:186
本文介绍了保持服务即使手机处于关机状态运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.....

这篇关于保持服务即使手机处于关机状态运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆