HTC的"快速启动"未进行广播BOOT_COMPLETED意图,也不擦了报警管理意图 [英] HTC's "fast boot" is not broadcasting BOOT_COMPLETED intent nor wiping intents from alarm manager

查看:123
本文介绍了HTC的"快速启动"未进行广播BOOT_COMPLETED意图,也不擦了报警管理意图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出一个报警应用程序,但也遇到了一些问题关于HTC的快速启动功能。此功能使转动设备的设备进入深度休眠状态,而不是。

I am making an alarm app but have run into a bit of a problem regarding HTC's "fast boot" feature. this feature puts the device into a deep hibernation instead of turning the device.

问题这给了我是因为手机没有关闭(虽然这是用户如何看待它),它不会从报警经理擦我的意图让我所有的报警熄灭用户直接把他的电话回(如果报警已过期即是)。这不是我希望用户能够用我的应用程序的体验。我想通过一个通知,报警的X个去了,而你的手机关机,通知在引导用户。我不能为原提到的理由这样做,也是因为事件虽然手机是关闭(在后台运行任何应用程序,没有通知,没有),它不会重新打开时,广播BOOT_COMPLETED意图。

The problem this gives me is that because the phone is not turning off (although this is how users perceive it) it is not wiping my intents from the alarm manager making all my alarms go off directly the user turns his phone back on (if alarms have expired that is). This is not the experience i want users to have with my app. I want to notify users on boot via a notification that "X number of alarms went off while your phone was turned off". I can not do this for the formerly mentioned reason and also because event though the phone is "turned off" (no apps running in background, no notifications, nothing) it will not broadcast a BOOT_COMPLETED intent when turned back on.

有谁知道一个方法来解决此问题?或许用HTC特殊意图的动作,表示快速启动的事件?

Does anyone know of a way to work around this? maybe a special intent action used by htc to indicate fast boot events ?

感谢您的帮助!

推荐答案

尝试

 <action android:name="android.intent.action.QUICKBOOT_POWERON" />

<action android:name="android.intent.action.QUICKBOOT_POWEROFF" />

这篇关于HTC的&QUOT;快速启动&QUOT;未进行广播BOOT_COMPLETED意图,也不擦了报警管理意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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