BroadcastReceiver for BOOT_COMPLETED is too slow

前端 未结 2 745
醉梦人生
醉梦人生 2021-02-14 12:57

The below is my manifest file.

    
    

        
2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-14 14:01

    Is there any what to start the application immediately after reboot?

    No.

    There are many, many apps that want to get control at boot time. How quickly yours will get its turn will depend on many variables, such as the number of installed apps, the CPU speed of the device, the amount of system RAM on the device, etc.

    Also, starting an activity from a BroadcastReceiver at boot time is fairly evil. If you want to be the first thing the user sees after a reboot, write a home screen implementation.

提交回复
热议问题