HTC的"快速启动"未进行广播BOOT

编程入门 行业动态 更新时间:2024-10-26 16:25:11
本文介绍了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

本文发布于:2023-11-27 10:35:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637720.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:快速启动   HTC   QUOT   BOOT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!