触发的活动,如果时钟匹配 [英] Trigger an activity if the clock is match
问题描述
我要开始活动,如果时钟是15.00。有没有参考?
I want to start an activity if the clock is 15.00. Is there any reference ?
假设我已经在我的后台运行的服务。
Assuming i had running services in my background.
修改 我有一个从数据库值。然后,该活动将触发基于时钟是我救的数据库。因此,如果数据库中有值,例如01.00,13.00,22.30,然后在活动开始的时候,手机时钟比赛作为3的值。
EDIT I have value from database. Then the activity will trigger based on clock that i saved from database. So if the database has values like 01.00 , 13.00 , 22.30 then the activity will start when the phone clock match as that 3 value.
推荐答案
这篇文章将帮助你。使用 AlarmManager
来设置重复报警。该时间可设置
This post will help you. Use AlarmManager
to set a repeating alarm. The time can be set.
<一个href="http://stackoverflow.com/questions/30489474/android-notification-app-not-working-properly/30490629#30490629">Android通知应用程序无法正常工作
这篇关于触发的活动,如果时钟匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!