代码安装APK文件

Intent intent = new Intent(Intent.ACTION_VIEW);   intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);intent.setAction(android.content.Intent.ACTION_VIEW);intent.setDataAndType(Uri.fromFile(file),"application/vnd.android.package-archive");    startActivity(intent); 

更多相关文章

  1. [置顶] AndroidStudio快捷键
  2. android apk安装结束的系统广播的监听
  3. Android(安卓)CTS Test
  4. Android蓝牙通信代码
  5. android音乐播放器
  6. android保存预览图片
  7. android 实现透明按钮
  8. Pycharm安装PyQt5的详细教程
  9. NPM 和webpack 的基础使用

随机推荐

  1. Android(安卓)GPIO 控制方案
  2. android常见异常
  3. 【Android】Async异步任务之添加进度条
  4. 在android浏览器中如果安装了app,则打开ap
  5. Qt For Android(安卓)如何获取手机屏幕大
  6. Android系统编译过程中常见问题汇总
  7. 〖Linux〗Android(安卓)NDK调用已编译好
  8. 【Android】 Eclipse : ERROR: Unknown o
  9. [置顶] Cocos2d-x使用过程中遇到的错误(V
  10. 挂断电话的实现(即类似于电话号码黑名单)