手机在Android中启动时,broadcastreceiver无法正常工作

编程入门 行业动态 更新时间:2024-10-24 20:19:18
本文介绍了手机在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无法正常工作

本文发布于:2023-11-27 04:33:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636609.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法正常   启动时   工作   手机   Android

发布评论

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

>www.elefans.com

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