Yes, there is a file collector in GDAA . The best place to use it is this demo , in particular Intents .
In the demo, you are interested in 2 methods:
- "Select file with opening activity",
- and "Select folder with opening activity"
but they are essentially the same, distinguishing only the MIME TYPE filter specified here:
IntentSender intentSender = Drive.DriveApi.newOpenFileActivityBuilder() .setMimeType(new String[] { DriveFolder.MIME_TYPE }) // <--- FOLDER //.setMimeType(new String[] { "text/plain", "text/html" }) // <- TEXT FILES .build(getGoogleApiClient());
Luck
source share