BroadcastReceiver not working when app is installed on sd card

前端 未结 1 1507
北荒
北荒 2021-01-27 14:49

I am creating a EventsManager app in which i have a BroadcastReciver which executes for BOOT_COMPLETED broadcast.this receiver has been used to re-register all the events with A

相关标签:
1条回答
  • 2021-01-27 15:47

    Quoting the documentation:

    In order for your application to consistently behave as expected, you should not allow your application to be installed on the external storage if it uses any of the following features... The system delivers the ACTION_BOOT_COMPLETED broadcast before the external storage is mounted to the device. If your application is installed on the external storage, it can never receive this broadcast.

    Hence, you cannot allow your app to be installed to external storage.

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