android 3.1以上boot complete receiver接受的问题
来源:互联网 发布:xbox360淘宝 编辑:程序博客网 时间:2024/05/22 14:14
可以参考如下的解释:
Broadcast Regression Confirmed In a previous post, I cited evidence that the BOOT_COMPLETED broadcast will not work out of the box on Android 3.1 until the user uses your app. It’s actually somewhat bigger than that. In the issue that I filed seeking clarification, Ms. Hackborn indicated: Starting with 3.1 when applications are installed they are in a “stopped” state so they will not be able to run until the user explicitly launches them. Pressing Force Stop will return them to this state. As a result, when applications are first installed, they are totally ignored by the system until and unless the user manually launches something: clicking on a launcher activity or adding an app widget, most likely. Developers who had been relying upon getting some sort of system broadcast without user intervention will need to adjust their apps for Android 3.1. As I wrote in the previous post: I expect that most apps will be OK. For example, if your boot receiver is there to establish an AlarmManager schedule, you also needed to establish that schedule when the app is first run, so the user does not have to reboot their phone just to set up your alarms. That pattern doesnot change – it’s just that if the user happens to reboot the phone, it will not set up your alarms, until the user runs one of your activities. UPDATE: To clarify the above quote, once the user runs the app for the first time (and does not Force Stop it), everything behaves as before — a reboot will cause BOOT_COMPLETED broadcasts to be received and so on. However, if the user installs the app, until and unless they run the app manually, no broadcasts will be received. And if the user force-stops the app, until and unless they run the app manually, no broadcasts will be received. This change is not terribly shocking, as it ratchets up the security another notch by limiting ways malware can run without user knowledge. While it does not offer perfect security — the malware can still install its own copy of an Angry Birds launcher icon and hope users screw up — it is an improvement.
原文详见:
http://stackoverflow.com/questions/9682846/start-service-at-boot-time-for-android-4-0
- android 3.1以上boot complete receiver接受的问题
- 4.1.3.1 Android Broadcast-Receiver的心得
- Android - Broadcast receiver 作为内部类接受广播
- Android的Broadcast Receiver
- android的receiver优先级
- android的receiver优先级
- 同时连接真机及genymotion导致receiver无法接收boot complete
- Android Receiver not registered问题
- ACTION_CREATE_SHORTCUT (接受此广播的Receiver会创建一个快捷方式)
- Android中receiver的用法
- 【安卓篇】Android的Broadcast Receiver
- Android的Broadcast Receiver组件
- Receiver not registered: android.widget.ViewFlipper 问题
- android 广播在4.0+系统上无法接受的问题
- 关于Android Intent传值接受的问题
- Citrix Receiver 无法启动的问题处理
- Pro Android学习笔记(九九):BroadcastReceiver(3):长时间运行Receiver的问题
- android的broadcast receiver的使用
- Java Design Demo--多线程(一)线程唤醒
- Verilog HDL数据类型
- vc中异常捕捉的最后一道屏障-SetUnhandledExceptionFilter
- makefile中的宏
- 20 求平均年龄 各班平均分
- android 3.1以上boot complete receiver接受的问题
- CSP平台银联前置系统ATM他带本和本代他交易失败原因分析
- 11198 - Dancing Digits
- hql查询方式 和 criteria 查询
- js中innerHTML用法
- CarParts3
- char,nchar,varchar,nvarchar之间的区别
- mt9d131 驱动简介
- Ubuntu上安装启动SSH Server