最近手机上常被偷偷安装一些垃圾程序,就想写个小工具来记录一下是哪个程序安装的,搜了一圈,发现程序安装后会广播消息:ACTION_PACKAGE_ADDED,不过这个消息好像是系统发出的,能不能查询到触发这个消息的应用程序名称呢?或者大家有啥其他好的监视程序安装的方法呢
解决方案 »
- Android移动设备和Web网页同时访问服务器时,中间层用什么开发合适?希望给予方向性指点。
- BitmapFactory.decodeByteArray data参数谁能详解一下!!
- 获取设备缓存freeStorageAndNotify的long参数的含义
- android 中如何获取网页中所有链接呢??在线等
- 关于定制机(网络锁)
- viewgroup 如何与adapter一同使用。。
- 请教 各位大大 如何在android开辟一个新的线程
- 请问一下在Android中竖屏转横屏的时候怎么传递数据呢
- 在android下能调用lwuit吗?谢谢
- 【土豪速成秘笈】成为土豪的N种办法
- 如何保存GestureLibrary对象
- getView 没有调用,why?
获取Android系统中已安装程序的名字、包名等信息
http://mm.10086.cn/buluo/topic.php?tid=867手册说明:
public static final String ACTION_PACKAGE_ADDED
Since: API Level 1Broadcast Action: A new application package has been installed on the device. The data contains the name of the package. Note that the newly installed package does not receive this broadcast.
My include the following extras:
* EXTRA_UID containing the integer uid assigned to the new package.
* EXTRA_REPLACING is set to true if this is following an ACTION_PACKAGE_REMOVED broadcast for the same package.
This is a protected intent that can only be sent by the system.
Constant Value: "android.intent.action.PACKAGE_ADDED"