首页 > 代码库 > 打开一个本地apk进行安装

打开一个本地apk进行安装

Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
File file = new File(Environment.getExternalStorageDirectory()
		.getAbsolutePath()+"/123/","wbank_kxd_sdk.apk");
intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive");
startActivity(intent);

  留作备用

打开一个本地apk进行安装