Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top