BOOT_COMPLETED never received

前端 未结 3 769
清歌不尽
清歌不尽 2021-01-15 16:03

Does every device send the BOOT_COMPLETED? I want to start an Activity on Boot Completed.

I put the following in the Manifest:



        
3条回答
  •  离开以前
    2021-01-15 16:38

    The possible reasons why broadcast reciever events could fail:

    1. Receiver not declared in AndroidManifest.xml Declare the receiver in the Manifest-file:

    2. Receiver in the Manifest xml is misspelled Android-System is case sensitive. So check your spelling and path is correct in the AndroidMainfest.xml

    3. AVD running for a long time Reset your avd/device

    4.Also if your app is in moved to sdcard.Say you have registered for android.intent.action.BOOT_COMPLETED,the boot event is triggered even before the mediascanner scans the sdcard.

    and all the devices which run android sends BOOT_COMPLETE :P Check again and try :) all the best :)

提交回复
热议问题