1)安装apk文件的代码(隐式意图)
Intent intent = new Intent(Intent.ACTION_VIEW);
String type = "application/vnd.android.package-archive";intent.setDataAndType(Uri.fromFile(mLongClickFile), type);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);