没有合适的资源?快使用搜索试试~ 我知道了~
Android 静默安装和静默卸载(SilentInstaller)
共35个文件
xml:11个
png:9个
java:4个
4星 · 超过85%的资源 需积分: 42 134 下载量 134 浏览量
2017-11-11
17:46:43
上传
评论 4
收藏 104KB ZIP 举报
温馨提示
详情见:Android 静默安装和静默卸载(系统层) http://blog.csdn.net/zhouyuanjing/article/details/78507606 安装: Intent intent = new Intent("android.intent.action.SILENT_PACKAGE_INSTALL"); intent.putExtra("silent_install_file", "/sdcard/Helloworld.apk"); intent.putExtra("silent_install_auto_start", true);//是否安装并启动 intent.putExtra("silent_install_start_clazz", "com.example.helloworld.MainActivity");//如果安装并启动,则需指定activityName sendBroadcast(intent); 卸载: Intent intent = new Intent("android.intent.action.SILENT_PACKAGE_DELETE"); intent.putExtra("silent_delete_package", "com.example.helloworld");//指定需要卸载apk的包名 sendBroadcast(intent);
资源推荐
资源详情
资源评论
收起资源包目录
SilentInstaller.zip (35个子文件)
SilentInstaller
AndroidManifest.xml 1KB
res
layout
activity_main.xml 239B
drawable-mdpi
ic_launcher.png 2KB
drawable-hdpi
ic_launcher.png 3KB
drawable-xhdpi
ic_launcher.png 5KB
drawable-xxhdpi
ic_launcher.png 8KB
values-zh-rCN
strings.xml 499B
values
strings.xml 543B
dimens.xml 213B
styles.xml 692B
src
com
android
silentinstaller
MainActivity.java 241B
SilentInstallerService.java 8KB
SilentInstallerReceiver.java 2KB
proguard-project.txt 781B
.classpath 425B
SilentInstallerTest
AndroidManifest.xml 847B
res
layout
activity_main.xml 911B
drawable-mdpi
ic_launcher.png 2KB
drawable-hdpi
ic_launcher.png 3KB
drawable-xhdpi
ic_launcher.png 5KB
drawable-xxhdpi
ic_launcher.png 8KB
values
strings.xml 218B
dimens.xml 213B
styles.xml 692B
src
com
android
silentinstallertest
MainActivity.java 1KB
proguard-project.txt 781B
.classpath 425B
project.properties 607B
ic_launcher-web.png 50KB
.project 822B
Android.mk 228B
project.properties 563B
.settings
org.eclipse.jdt.core.prefs 173B
.project 818B
Android.mk 282B
共 35 条
- 1
资源评论
- dzhappy2019-01-24帮朋友下的,哈哈
- stevenluohongcai19882018-05-07您好,您这个在7.0以上验证了么
- qq_236589252017-11-24您好,你这个里面的代码,我导入我的eclipse里面,PackageManager.installPackage报错是怎么回事呢,是安卓版本的问题么?飞雪连天射白鹿2017-11-24我这个是系统层的,PackageManager.installPackage可以直接调用,标准SDK这个接口被隐藏了,需要反射的方式调用
飞雪连天射白鹿
- 粉丝: 184
- 资源: 62
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功