Android: BroadcastReceiver on application install / uninstall

前端 未结 1 1357
广开言路
广开言路 2020-12-05 21:16

I want to install an apk file and set a broadcast-receiver in order to catch information concerning install status.

I have prepared a BroadcastReceiver class :

相关标签:
1条回答
  • 2020-12-05 21:57

    You need to add the data scheme to your intent filter.

    filter.addDataScheme("package");
    

    Also, ACTION_PACKAGE_INSTALL was never in use.

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