Android的:如何获得使用广播接收器安装的应用程序信息接收器、如何获得、应用程序、信息

2023-09-04 05:03:30 作者:孤独与酒伴我走

我是新来的机器人。我使用的是广播接收器,当一个应用程序被安装或删除监听。当一个应用程序被安装或删除我的广播接收器的的onReceive(背景下,意图)将被称为..现在我需要得到有关安装或删除应用程序(主要是包名)的信息。

I am new to android. I am using a Broadcast receiver which listens when a app is installed or removed.. When a app is installed or removed my Broadcast Receivers's onReceive(context,intent) will be called.. Now i need to get the info about the application installed or removed (Mainly the package name)..

plz帮助

推荐答案

所有你想要的信息是在意图花絮。

All the information you want is in the Intent extras.

看How找到已在使用Intent.ACTION_PACKAGE_REMOVED