How to upload and download using Google Drive API in Android? - android

I learned the Google Maps API concepts, and now I try to learn the Google Drive API. I searched a lot and I found Google developers videos, but I'm unable to understand how to upload and download a file using Google Drive API in Android.

Here Drive API for Android get full details with step by step instructions.

Related

Google Drive Android API tutorial for Download & Upload File

I have gone through Google Drive API Documentation and tried Official Google Drive Demos from Github as well. I couldn't find directly download file from Google Drive to Android Local Storage. There are so many threads on StackOverflow and I tried some but no success yet.
Can someone point me to right direction? Tutorial link or even StackOverflow thread which works?
As per my needs Google Drive Android API doesn't provide Download and Upload atleast that's not in documentation https://developers.google.com/drive/android/intro
Documentation shows reading from input stream and writing to it.
So I decided to use Google Drive REST API. which clearly states downloading and uploading methods or endpoints.
Now the issue is Rest documentation not showing how to authenticate on android and use that authentication to make requests to REST API.

Is it possible to upload file on specific google drive in Android

I have to developed a application such that any one can access my google drive and he/she can read and write file on my google drive using android.
Kindly refer the link given below , You can use this for including google drive in your app.
https://github.com/googledrive/android-demos
https://developers.google.com/drive/android/

Google Docs / Drive for editing Spreadsheet on Android

I want to simply use my Google-Account to read in Table Rows from a Google Docs File. The examples provided by Google are over-engineered,
1) Setting up a Play Service
2) Activating Drive SDK
3) Using OAuth
4) Activating Intent
5....
The Quick-Start Example provided by Google needs a lot of configuration as well. A Google Announcement of "sweat less google-drive" api on youtube is not the reality or maybe i am on the wrong path.
Could someone give me an advice?
It seems that i am not the only one struggling: Current Android Google Spreadsheet API Example for writing
The Google Drive Android API doesn't support reading or editing Google Spreadsheets content, however the Google Sheets API 3.0 has a Java wrapper that you should be able to use on Android. See this link for more info: https://developers.google.com/google-apps/spreadsheets/

Access to Google Drive from self implemented Android application

My Problem is, that I want to use any SDK or API to access my google drive from my android phone without using an existing google drive app on my android phone.
I read the instructions on this side: google drive sdk
The code examples does only work for desktop applications and the "integrate with Android" topic on the side does not provide any example how I can access my google drive from my android application.
I already read android-api-for-google-drive here but this leads only to more links and how-to's which are far to complicated and fuzzy.
Has anyone experience with connecting to google-drive from an android application and could help with any example code or "clean-and-short-explained" tutorial?
Luckily, just after you asked this question, Google released their Play Services (see this link), which makes it a heck of a lot easier to access files using the Drive SDK & Drive API. Please see my post on Google Plus that gives a step-by-step walkthrough and code example on how to integrate an Android app with Google Drive documents: https://plus.google.com/u/0/114042449736049687152/posts/CD3L8zcJg5Z
In the tutorial, I reference a particular Google IO 2012 talk (slides at https://docs.google.com/presentation/d/1LrEKp2PqESsES3upS1xsSARz35KS-9QHnYFTKvS2yzM/preview#slide=id.p19), but please read my G+ post because I go through the various flaws, pitfalls, and omitted details from this presentation.
Before you start coding anything, get yourself signed up for the Google APIs (see this link), get into the API Console, and turn on both the Google Drive API and Drive SDK.
Good luck & have fun!

Listing all available files in Google Drive through Google Drive SDK

Previously, in desktop application, I am using Google Document List API, to list out all available files in Google Drive.
http://jstock.hg.sourceforge.net/hgweb/jstock/jstock/file/808b03e824bf/src/org/yccheok/jstock/gui/Utils.java#l1188
However, Google Document List API is not supported in Android platform. In order for this to work in Android platform, I need to use Google Drive SDK.
https://developers.google.com/drive/v1/reference/files/get
I do not see Google Drive SDK provides such functionality. So, what Android developers can do, to achieve list out all available files in Google Drive purpose?
See the answer by #Nivco to this post.
Admittedly, not a great set of options, but probably the "HTTP REST API plus XML parser" is your best bet in the near term...

Categories

Resources