Вопрос

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