Search code examples
javaandroidgoogle-drive-apigoogle-drive-android-api

Google Drive SDK for Android: How to get folder id if I know folder title


I need to upload files to a folder on a Google Drive that was previously created by another user, I know the folder name, how do I get folder ID programmatically from android app if I know folder name (title).


Solution

  • The Drive Android API currently only supports per file access, known as File scope. Users would need to select the folder via the file picker in order to authorize your app to access it.

    We hope to be able to add Drive scope to the Android API in future, however I am not able to share a timeline at this stage. It would be great if you could share more details of your use case for this feature on our issue tracker.

    In the interim you should be able to support your use case with the Java REST API.