Pick folder intent - null Uri returned

File Manager/Explorer for Android devices.

Pick folder intent - null Uri returned

Postby juanjo » Sat Feb 26, 2011 9:43 am

Hi,

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.setAction(Intent.ACTION_PICK);
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,

Juanjo
juanjo
 
Posts: 1
Joined: Sat Feb 26, 2011 9:17 am

Re: Pick folder intent - null Uri returned

Postby support » Sun Feb 27, 2011 10:09 am

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?
support
 
Posts: 996
Joined: Sun Apr 20, 2008 4:40 pm


Return to AndExplorer



Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.