[Android]APK程序卸载提示
来源:互联网 发布:淘宝企业店铺认证资料 编辑:程序博客网 时间:2024/04/30 05:44
[Android]APK程序卸载提示
http://www.devdiv.com/forum.php?mod=viewthread&tid=47060&fromuid=109620
Android上能不能实现卸载时提示呢,比如卸载某某软件时,做个用户调查卸载的原因。
我以前想着是的不行的,以前的想法是:Windows上卸载时能实现此功能是因为有些程序的卸载是自己实现的,非系统操作。
但android上目前来说还不支持,系统卸载时,还没发现有啥接口可以和目标卸载程序交互。
呵呵,今天鼓捣LogCat,发现还是可以的。
实现基础是:
1.通过注册权限,能够获取LogCat的输出流的输出信息。
2.进入系统的卸载界面时,"打包安装程序(com.android.packageinstaller)"会输出如下信息
01-22 16:29:15.250: INFO/ActivityManager(147): Starting activity: Intent { act=android.intent.action.DELETE dat=package:lab.sodino.uninstallhint cmp=com.android.packageinstaller/.UninstallerActivity }
好了,有这句话就足够了。截取输出流信息,当获取字符串中包含"android.intent.action.DELETE"和"<you_package>"时,就启动卸载提示页面。
话就这么多了。接下来看效果图,上代码。
- [Android]APK程序卸载提示
- [Android]APK程序卸载二次确认的实现
- Android安装和删除(卸载)应用软件程序(apk/app)
- android应用程序中启动或卸载其他apk程序
- Android虚拟机上安装和卸载APK程序
- android安装卸载apk
- Android安装/卸载apk
- android 安装/卸载apk
- android 安装卸载apk
- Android限制卸载APK
- Android apk卸载流程
- android彻底卸载apk
- Android 安装程序(APK)后并启动程序(APK) 安装 卸载
- 自动安装APK程序/卸载
- android实现卸载提示
- android实现卸载提示
- Android Studio 出现APK安装过程中报错提示要卸载,实际上已经没有
- android:卸载系统apk,安装apk
- ca
- POJ 3464 最短路径与次短路径的条数
- android监控来电显示
- [Android]四种方式解析字符串----JSON、SAX、DOM、XML
- 第十三天(类和动态内存分配·二)
- [Android]APK程序卸载提示
- 在Linux(fedora16)中如何安装Python3.2,并设定其为默认的Python版本?
- Android天线信号刷新流程
- java在线教程总结
- [Android]实现静默安装APK的两种方法
- 关于Selenium脚本在Win7 IE8环境下不能运行的问题及解决方案
- hdu 2611 Sequence two 4.3.6
- BIOS中英文对照表经典收藏
- android中 能不能读取签名信息