I'm trying to use this API to access all files on user's Drive, but it is not possible:
- Using
Drive.SCOPE_FILE only lists New Folder as a child of the root folder (client.rootFolder)
- Using just
Scope("https://www.googleapis.com/auth/drive.readonly") fails with:
java.lang.IllegalArgumentException: You must request a Drive scope in order to interact with the Drive API.
at com.google.android.gms.common.internal.zzbq.checkArgument(Unknown Source)
at com.google.android.gms.drive.Drive.zza(Unknown Source)
at com.google.android.gms.drive.Drive.getDriveResourceClient(Unknown Source)
- Using both scopes:
requestScopes(Drive.SCOPE_FILE, Scope("https://www.googleapis.com/auth/drive.readonly")) seems to ignore the latter one and still only lists the New Folder