You are here

2 bugs: IO File Manager with FileManagerIntents.ACTION_PICK_FILE returns folder with file:/// prefix

1. When using IO File Managers pick file option, if no file is selected, only folders, the URI to the folder with file:/// prefix is returned. Shouldnt the prefix be "folder://", if any?

2. Shouldnt the prefix for any URI contain ony two slashes, not three?

Thany you for your great work!
Best regards!


The prefix is indeed "folder://" with only two slashes, but the path starts with "/sdcard/...", that is where you get the third slash from: "folder:///sdcard/...".

First of all, thank you for your reply!

I can't seem to get the folder:///sdcard/.
So let me describe my use of the application.

I am using only FilePickerActivity, with this code:

Intent intent = new Intent("org.openintents.action.PICK_FILE");
startActivityForResult(intent, 1);

in onActivityResult() method, i have the folowwing code:

protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK && data != null) {
// obtain the filename
String filename = data.getDataString();
this.newFileURI = filename;
if (filename != null) {
// Only files accepted, if directory is selected, return to FilesActivity
if (!filename.startsWith("file://")) {

When the PICK_FILE activity is called, you can navigate trough the file system and pick a file/folder. If you pick a file and press the button to select it, everything is fine, but if you do not select a file, but only click on the folders, no file name will be in the textbox, but when you press the button to select it (select nothing), the path to the current folder is returned: file:///sdcard/foldername

not a relevant bug, but would be nice to have it to work correctly.
but when the activity returns a folder name, it does not even include a last path delimiter, so a developer has no way of knowing if the returned path is to the folder or to the file.

sorry for my simple english...