android之安装APK代码
android安装APK代码,简单几行:代码如下
//apk路径
File APKfile = new File(sdPath + apkfilePath);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(APKfile),
"application/vnd.android.package-archive");
context.startActivity(intent);