You are here

Pick folder

Intents using Pick folder

Title Description
Pick folder
Scheme must be "folder". Data can be a file URI for suggested starting directory or can be left empty.
File URI of the selected folder.

Pick a folder through a file manager.

android.intent.extra.TITLE could be used as well.
Sample usage:

Intent theIntent = new Intent(Intent.ACTION_PICK);
theIntent.setData(Uri.parse("folder://"+aFolder.getPath())); //default folder / jump directly to this folder
theIntent.putExtra(Intent.EXTRA_TITLE,"A Custom Title"); //optional
startActivityForResult(theIntent, 1);

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

Status of intents protocol: