Android的报警是什么四种报警的AlarmManager提供以及何时使用什么区别? [英] Android Alarm What is the difference between four types of Alarm that AlarmManager provides and when to use what?

查看:231
本文介绍了Android的报警是什么四种报警的AlarmManager提供以及何时使用什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道的区别的 RTC,RTC_WAKEUP,ELAPSED_REALTIME,ELAPSED_REALTIME_WAKEUP 。结果
我想写一个报警应用程序,我将设置报警,并关闭我的申请,并期望为时间设定闹钟。结果
将有多个报警。现在我写模拟器,但后来将测试设备上。在仿真器,一旦我设定的报警,并关闭仿真器,然后重新启动它,然后将它清除,因为我与RTC,RTC_WAKEUP和ELAPSED_REALTIME找到。我很困惑。我应该用ELAPSED_REALTIME_WAKEUP?我还没有看到使用任何ELAPSED_REALTIME_WAKEUP教程。
请解释。
谢谢你。

I want to know the difference between RTC, RTC_WAKEUP, ELAPSED_REALTIME, ELAPSED_REALTIME_WAKEUP.
I want to write an alarm application where I will set alarm and close my application and expect for alarm for the time set.
There will be multiple alarms. Right now I am writing for emulator but later will test on device. In emulator, once I set the alarm and close the emulator and restart it, then will it be cleared, as I find with RTC, RTC_WAKEUP and ELAPSED_REALTIME. I am confused. Should I used ELAPSED_REALTIME_WAKEUP? I have not seen any tutorial using ELAPSED_REALTIME_WAKEUP. please explain. Thanks.

推荐答案

您可以阅读这样的:

http://developer.android.com/reference/android/app/ AlarmManager.html

您已经beetween警报所有的差异

You have all the difference beetween alarms

这篇关于Android的报警是什么四种报警的AlarmManager提供以及何时使用什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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