OpenFileActivityOptions
Stay organized with collections
Save and categorize content based on your preferences.
Options used to configure settings for the open file dialog activity. Using these options,
search results of a user's Drive can be filtered for a faster experience and more narrow
results.
To create the open file dialog activity with a specified configuration, pass the options
to
newOpenFileActivityIntentSender(OpenFileActivityOptions)
. The returned
IntentSender
can be used to create an activity that will display all files and folder from the user's
Drive, including those that the calling application does not have explicit authorization to
access.
Once the user selects a file to open, the calling application is given access to that
file.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
The ID to get access to the selected DriveId
.
Constant Value:
"response_drive_id"
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`OpenFileActivityOptions` configures settings for the Android open file dialog, enabling Drive search filtering for a streamlined user experience."],["Developers can use these options to create an activity that displays files and folders from the user's Drive, even those without explicit app authorization."],["Upon file selection, the calling application gains access to the chosen file."],["`OpenFileActivityOptions` utilizes a builder pattern for instantiation and offers an `EXTRA_RESPONSE_DRIVE_ID` constant for accessing the selected Drive ID."]]],["`OpenFileActivityOptions` configures the open file dialog, allowing filtered searches of a user's Drive. Options are passed to `newOpenFileActivityIntentSender` to create the dialog activity, which displays all files, even without explicit access. Upon user selection, the application gains access to the chosen file. The `EXTRA_RESPONSE_DRIVE_ID` constant provides the selected `DriveId`. The class includes a Builder for creating instances and inherits methods from `java.lang.Object`.\n"]]