android怎么用intent跳转到文件管理器

2025-05-02 09:24:11
推荐回答(2个)
回答1:

Intent mIntent = new Intent( );
ComponentName comp = new ComponentName("com.mediatek.filemanager", "com.mediatek.filemanager.FileManagerOperationActivity");
mIntent.setComponent(comp);
mIntent.setAction("android.intent.action.VIEW");
startActivity(mIntent);
可能需要设置mIntent.flag 为new_task,你试试吧

回答2:

Intent intent = new Intent();
intent.setAction("action");//这个地方action换成你要跳转到的文件管理器的action
intent.addCategory("category");//这个地方category换成你要跳转到的文件管理器的category
startActivity(intent);

android跳转到另一个应用都是一样的,只是设置的action与category跟据跳转的应用不同有所不同。