You are here

Pick file

Intents using Pick file

Title Description
Pick file
A file URI for suggested file name or starting directory. Can also be left empty.
File URI of the selected file.

Pick a file through a file manager.

Sample usage:

Intent intent = new Intent("org.openintents.action.PICK_FILE");
intent.putExtra("org.openintents.extra.TITLE", "Please select a file");
startActivityForResult(intent, 1);

The picked file URI can be obtained in onActivityResult() through getData().

Details can be found in the sample application TestFileManager in the public repository, that can be also downloaded from OI download page.

You may want to use the OI File Manager intent definition file.