Reputation: 5308
My Android application is accessing the SDCard.
I have developed the source code to display the folder & files on the SDCard.
Currently, I want to provide the option where the user can view the SDCard Folder/File structure using the File Managers(Astro Manager , Linda Manager) already installed on the user's Android mobile device.
How can I call or provide the list of options of the file managers to the user.
Any hints/suggestions are welcome.
Upvotes: 1
Views: 964
Reputation: 20041
you need to add this line in manifest file.
<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>
for more refer
Upvotes: 2
Reputation: 6712
You can use this piece of code for OI Filemanager:
Intent intent = new Intent("org.openintents.action.PICK_FILE");
startActivityForResult(intent, 1);
Or you use the VIEW Intent with the mimetype
Upvotes: 1