Android APK 文件自动安装

1、权限

<uses-permission android:name="android.permission.INSTALL_PACKAGES" />  

2、方法

Uri uri = Uri.fromFile(new File("/sdcard/temp.apk")); //这里是APK路径  
Intent intent = new Intent(Intent.ACTION_VIEW);  
intent.setDataAndType(uri,"application/vnd.android.package-archive");  
startActivity(intent);
原文地址:https://www.cnblogs.com/zhaoyanjun/p/4600639.html