手机在Android中启动时,broadcastreceiver无法正常工作 [英] broadcastreceiver not working while phone is booting in Android

查看:101
本文介绍了手机在Android中启动时,broadcastreceiver无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为ICS创建了一个锁屏,并将其放置在框架中,我们可以使用它来打开应用程序。对于用户效果,在显示锁定屏幕时,我已经开始播放动画。该动画是使用SCREEN_ON broadcastereceiver启动的。但是,即使我注册了broadcastereceiver,电话仍在启动时,它仍未到达onReceive()且动画无法开始。在电话启动过程中,我认为该广播没有更高的优先级来执行并将优先级设置为高,但是它也不起作用。

I have created a lock screen for ICS and it is placed in the frameworks and we can open applications using this. For the user effects I have started an animation when the lock screen is displayed. This animation is started using SCREEN_ON broadcastereceiver. But when the phone is booting up even though I registered broadcastereceiver it is not reaching to onReceive() and the animation is not starting. While phone bootup is taking place I thought that this broadcast is not having higher priority to execute and set the priority as high but it is also not working.

推荐答案

检查一下。.
我也遇到了相同的问题广播未调用

据我所知,问题出在Android HoneyComb和ICS。我已经在HoneyComb,ICS,Ginger Bread和Froyo上测试了相同的应用程序。适用于Froyo和Ginger面包,但不适用于蜂窝或ics。

According to my knowledge the problem is with Android HoneyComb and ICS. I have tested same application on HoneyComb,ICS, Ginger Bread and Froyo. Worked perfectly for Froyo and Ginger bread but not for honeycomb or ics.

这篇关于手机在Android中启动时,broadcastreceiver无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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