Pick folder intent - null Uri returned

File Manager/Explorer for Android devices.
Post Reply
Posts: 1
Joined: Sat Feb 26, 2011 9:17 am
AntiSpam sum: 8

Pick folder intent - null Uri returned

Post by juanjo »


I'm integrating AndExplorer in my application, using the pick folder intent.

1) Calling AndExplorer is successful and starts in the given initial directory.
2) I select some other directory (p.e., pressing [Go to up folder]).
3) Press 'Ok'.

The data.getData() in the intent returned via onActivityResult() (RESULT_OK) is always null.

AndExplorer call:

Intent intent = new Intent();
intent.setDataAndType(Uri.fromFile(....), "vnd.android.cursor.dir/lysesoft.andexplorer.directory");
intent.putExtra("explorer_title", "...");
intent.startActivityForResult(intent, 1);

Android version: 2.2
AndExplorer version: 1.7

Kind regards,


Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: Pick folder intent - null Uri returned

Post by support »

Did you get the green checkbox when selecting a folder? You have to long press on folder name to select a folder. See screenshots at: http://www.lysesoft.com/products/andexp ... ntent.html
You will see working code sample and a full Android application (with source code) to test all Intents.
Does it help?

Post Reply