Page 1 of 1

Pick folder intent - null Uri returned

PostPosted: Sat Feb 26, 2011 9:43 am
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(....), "");
intent.putExtra("explorer_title", "...");
intent.startActivityForResult(intent, 1);

Android version: 2.2
AndExplorer version: 1.7

Kind regards,


Re: Pick folder intent - null Uri returned

PostPosted: Sun Feb 27, 2011 10:09 am
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: ... ntent.html
You will see working code sample and a full Android application (with source code) to test all Intents.
Does it help?