Search code examples
androidgoogle-drive-android-api

I only want to upload files to Google Drive


There is a way to create and upload files to the official Google Docs and demo sources.

But there is no way to upload existing files.

I want to know how to upload a file (ex. Sqlite db file) of an Android app to Google Drive.

Thank you


Solution

  • You may want to check the Google Drive Android API on how to manage file content and metadata. You can create files in two ways with the Drive Android API: using the DriveClient.newCreateFileActivityIntentSender method and the CreateFileActivityOptions class; or using the DriveResourceClient.createFile method.

    You may also check these links for additional reference: