Code to browse the contents of the sdcard & pick a file. Based on openintent's filemanager.
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
res
src/com/raverun/filebrowser
.classpath
.gitignore
.project
AndroidManifest.xml
LICENSE-2.txt
README.md
default.properties
proguard.cfg

README.md

Summary

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

External dependencies & inspiration

This software uses the following opensource artifacts:

How to use

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.

History

  • First release 2011 march 22