我的 Android 应用程序正在访问 SDCard。
我已经开发了显示SDCard上的文件夹和文件的源代码。
目前,我想提供一个选项,让用户可以使用已安装在用户 Android 移动设备上的文件管理器(Astro Manager、Linda Manager)查看 SDCard 文件夹/文件结构。
如何调用或向用户提供文件管理器的选项列表。
欢迎任何提示/建议。
最佳答案
您需要在 list 文件中添加这一行。
<meta-data android:name="com.android.ui.DocumentModuleActivity"
android:value="MWare" />
<intent-filter android:priority="1">
<action android:name="android.intent.action.VIEW" />
<action android:name="com.android.ui.DocumentModuleActivity" android:launchMode="singleTask" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.LAUNCHER" />
<data android:scheme="file" />
<data android:mimeType="application/*" />
<data android:host="*" />
<data android:pathPattern=".*\\.las" />
</intent-filter>
关于android - 从移动应用程序调用文件管理器列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8323881/