android 版本更新
来源:互联网 发布:网络推广师 编辑:程序博客网 时间:2024/05/20 00:37
让apk安装后自动启动
@Overridepublic void onSuccess(ResponseInfo<File> arg0) { System.out.println("下载成功"); // 跳转到系统下载页面 Intent intent = new Intent(Intent.ACTION_VIEW); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setDataAndType(Uri.fromFile(arg0.result), "application/vnd.android.package-archive"); // startActivity(intent); startActivityForResult(intent, 0);// 如果用户取消安装的话, // 会返回结果,回调方法onActivityResult //启动手机中的一个APK文件,如启动test.apk android.os.Process.killProcess(android.os.Process.myPid());}
参考链接 :
http://blog.csdn.net/codenoodles/article/details/50557034
0 0
- Android版本更新
- Android SDK版本更新
- Android软件版本更新
- Android 检测版本更新
- Android之版本更新
- Android版本更新实现
- android版本更新问题
- android apk版本更新
- android版本更新
- Android 版本的更新
- Android版本更新
- Android提示版本更新
- android 版本更新
- Android应用版本更新
- android版本更新
- Android检测版本更新
- Android中版本更新
- Android 更新升级版本
- 文章标题
- js生成随机数
- java并发编程(十五)--线程间通信中notifyAll造成的早期通知问题
- 高德地图设置可视区域边界
- mysql插入数据
- android 版本更新
- 面向对象(二)
- 图像的Gamma(伽玛)校正的原理及OpenCV代码实现!
- 开发人员常说的CLI是什么
- JFace TreeViewer使用 及内容提供器(IStructuredContentProvider)
- android2.3.4----1.ubuntu12.04 64位编译android2.3.4
- Linux下Rsync+Inotify部署
- Poj 3114 Countries in War【强连通Kosaraju+缩点染色+Floyd】
- android2.3.4----2.关于framebuffer