private void installApk(String fileUri) {
Intent intent = new
Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://" +
fileUri),
"application/vnd.android.package-archive");
startActivity(intent);
this.finish();
}
记:Android 安装apk的代码实现,布布扣,bubuko.com
时间: 2024-10-07 05:24:58