문제

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