Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//filePath为文件路径
intent.setDataAndType(Uri.parse("file://"+filePath), "application/vnd.android.packagearchive");
startActivity(intent);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//filePath为文件路径
intent.setDataAndType(Uri.parse("file://"+filePath), "application/vnd.android.packagearchive");
startActivity(intent);