由网友(我命缺她)分享简介:欲在特定时间启动背景每天在一个服务。我在Android 2.2。请建议我一个样品code。I want to start a service in background everyday at a particular time. I am on android 2.2. please suggest me a sa...
欲在特定时间启动背景每天在一个服务。我在Android 2.2。请建议我一个样品code。
I want to start a service in background everyday at a particular time. I am on android 2.2. please suggest me a sample code.
感谢
推荐答案
您想要的 Android的报警管理< /一>:
You want the Android Alarm Manager:
这个类提供访问系统报警服务。这允许您安排您的应用程序,以在未来的某个时候运行。
This class provides access to the system alarm services. These allow you to schedule your application to be run at some point in the future.
和这里是一个教程为您的观赏乐趣。
And here is a tutorial for your viewing pleasure.
相关推荐
最新文章