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) Google Play Services picker

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)

Google Drive Move To

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top