BOOT_COMPLETED intent not received on all devices

前端 未结 2 740
感情败类
感情败类 2020-12-21 16:35

I have created an application that receives BOOT_COMPLETED within a receiver using the following filter:




        
相关标签:
2条回答
  • 2020-12-21 17:13

    Some devices after Android 3.1 will not give the app control after the BOOT_COMPLETED receiver.

    Google has long said that users should launch an activity from the launcher first, before that application can go do much. Preventing BOOT_COMPLETED from being delivered until the first activity is launched is a logical extension of the same argument.

    I do not know which devices it makes a difference on though.

    0 讨论(0)
  • 2020-12-21 17:23

    Make sure that you are doing a real full reboot.

    Some HTC devices, for example, have a "fast boot" mode that does not trigger BOOT_COMPLETED, but instead sends an android.intent.action.QUICKBOOT_POWERON broadcast. As I understand it, the "fast boot" mode basically does a hibernate, instead of a true power down, and so they don't send BOOT_COMPLETED as a result.

    (why the Intent action isn't com.htc.action.QUICKBOOT_POWERON is a whole `nuther issue...)

    0 讨论(0)
提交回复
热议问题