我为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无法正常工作
发布评论