本文介绍了如何处理ACTION_SHUTDOWN事件上HTC渴望关机选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经注册的广播接收 ACTION_SHUTDOWN ,其上的所有设备正常工作

I have registered broadcast to receive ACTION_SHUTDOWN , its working properly on all devices

然而在HTC渴望它不获取调用的情况下关闭电源的。照片在重新启动的情况下,的 ACTION_SHUTDOWN 是越来越触发。

However on HTC desire it's not getting called in case of Power off.
In case of Restart, the ACTION_SHUTDOWN is getting triggered.

什么样的​​行动,我需要检查处理相同的情况下,为关机选项?我想做的事情我做了重新启动选项相同的操作。

What Action do I need to check to handle the same case for 'Power off' option?I want to do same operations what i did for restart option.

推荐答案

在电源关闭手机进入睡眠模式,而不是真正的关机。所以ACTION_SHUTDOWN不播出。

When you Power Off phone goes in sleep mode, not real shutdown. So ACTION_SHUTDOWN doesn't broadcasted.

这篇关于如何处理ACTION_SHUTDOWN事件上HTC渴望关机选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 10:03