我正在寻找Root Explorer的意图(例如Super Manager,Root Explorer ...)我只想创建一个打开此资源管理器的按钮。 我找到了OI Filemanager的意图,但它没有root函数。
答案 0 :(得分:1)
Open another application from your own (intent)
以下是其中一种方式:
Intent intent = new Intent("android.intent.action.MAIN");
intent.setComponent(ComponentName.unflattenFromString("com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks"));
intent.addCategory("android.intent.category.LAUNCHER");
startActivity(intent);
上面的链接应该包含您需要的所有信息。
当然,此方法无法专门打开文件资源管理器。您必须适当地更改包名称。
答案 1 :(得分:1)
Try this
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("file/*");
intent.setData(Uri.parse("file://"));
startActivity(intent);