Android: BroadcastReceiver on application install / uninstall

前端 未结 1 1364
广开言路
广开言路 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)
提交回复
热议问题