I am trying to add the functionality to create a new Google Drive document (presentation, spreadsheet, etc.) to my app. To do this, I initially wanted to just use URL intents, but it seems that one cannot create a new Google Drive document through the Android browser. My next idea is to somehow integrate with the Google Drive app. Is there anyway to call/open the Google Drive app from my app (for example, with intents)?
Share
You can use the Google Drive API to upload a file to Drive and have it automatically converted to the corresponding Google format. For instance, you can upload a text file and have it converted to a Google Docs.
The Android quickstart for Drive shows how to upload a photo, it should be easy to change the code to upload a different file instead and add the
?convert=trueparameter:https://developers.google.com/drive/v2/reference/files/insert