Simple-file-picker is a project mainly written in Java, based on the Apache-2.0 license.
Code to browse the contents of the sdcard & pick a file. Based on openintent's filemanager.
This project provides an embeddable sdcard browser with the purpose
of picking a file. It doesn't support directory picking. Currently the browser is rooted at /sdcard
(i.e. user cannot browse to /
). See screenshots
@last-updated: 2011 april 12th 15h15 GMT+8
This software uses the following opensource artifacts:
Icons at devianart
The class Pair.java
from Google Web Toolkit
The code is based on OpenIntent's filemanager
Color scheme solarized
From your Activity, you can request for the file browser by broadcasting this intent:
import com.raverun.filebrowser.util.Constants;
Intent intent = new Intent( Constants.ACTION_PICK_FILE );
intent.putExtra( Intent.EXTRA_TITLE, "Select bookmarks file" );
startActivityForResult( intent, 2 );
Then in your Activity#onActivityResult
, you will receive the an instance of java.io.File
that refers to the selected file. Please consult the code in com.raverun.filebrowser.Main
.