Intent.ActionOpenDocumentTree Field

Definition

Activity Action: Allow the user to pick a directory subtree.

[Android.Runtime.Register("ACTION_OPEN_DOCUMENT_TREE")]
public const string ActionOpenDocumentTree;
[<Android.Runtime.Register("ACTION_OPEN_DOCUMENT_TREE")>]
val mutable ActionOpenDocumentTree : string

Field Value

Implements

Attributes

Remarks

Activity Action: Allow the user to pick a directory subtree. When invoked, the system will display the various DocumentsProvider instances installed on the device, letting the user navigate through them. Apps can fully manage documents within the returned directory.

To gain access to descendant (child, grandchild, etc) documents, use DocumentsContract#buildDocumentUriUsingTree(Uri, String) and DocumentsContract#buildChildDocumentsUriUsingTree(Uri, String) with the returned URI.

Callers can set a document URI through DocumentsContract#EXTRA_INITIAL_URI to indicate the initial location of documents navigator. System will do its best to launch the navigator in the specified document if it's a folder, or the folder that contains the specified document if not.

Output: The URI representing the selected directory tree.

Java documentation for android.content.Intent.ACTION_OPEN_DOCUMENT_TREE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also