You are using the "Open" file picker. It sounds like you want to create a new folder? In that case use the "Create" file picker. See newCreateFileActivityBuilder
Google Play Services invoke folder picker with new folder button
-
11-07-2023 - |
题
I use the following IntentSender for creating a folder picker
final IntentSender i = Drive.DriveApi.newOpenFileActivityBuilder()
.setMimeType(new String[] {DriveFolder.MIME_TYPE})
.build(mGoogleApiClient);
But that picker doesn't have a "New diretory" feature (first image)
If I open the Google Drive app, and press "Move to", it's picker does have a New folder menu item in ActionBar (second image)
解决方案
不隶属于 StackOverflow