- Intent intent = new Intent();
- intent.setComponent(new ComponentName("所要打开的程序包名", "所要打开的程序包名+主运行类名"));
- intent.setAction(Intent.ACTION_VIEW);
- startActivity(intent);
- Intent intent = new Intent(Intent.ACTION_VIEW);
- ddFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- //filePath为文件路径
- intent.setDataAndType(Uri.parse("file://"+filePath), "application/vnd.android.packagearchive");
- startActivity(intent);