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

How to share Google Drive file from Android app?


My Android app creating a file on Google Drive using new Google Drive API. I'm getting DriveFile object successfully.

The question is: how to share this file from my app? Links to relevant topics and especially code samples are appreciated.


Solution

  • The Android-specific API does not yet support sharing. You can use the RESTful web API to do this. See permissions.

    From a DriveId you can get the resourceId, which is the id you need in order to access a file in the web API.