android automatically installs apk code instance of without the apk installer
- 2020-05-19 05:50:18
- OfStack
/**
* The installation download is complete APK
* @param savedFile
*/
private void installAPK(File savedFile) {
// Call the system installation method
Intent intent=new Intent();
intent.setAction(intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(savedFile), "application/vnd.android.package-archive");
startActivity(intent);
finish();
}