Android的:如何获得使用广播接收器安装的应用程序信息 [英] Android: How to get the installed App information using Broadcast receiver

查看:192
本文介绍了Android的:如何获得使用广播接收器安装的应用程序信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的机器人。我使用的是广播接收器,当一个应用程序被安装或删除监听。当一个应用程序被安装或删除我的广播接收器的的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.

看<一href="http://stackoverflow.com/questions/8910411/how-to-find-the-package-name-which-has-been-uninstalled-when-using-intent-action">How找到已在使用Intent.ACTION_PACKAGE_REMOVED

这篇关于Android的:如何获得使用广播接收器安装的应用程序信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆