Access to Google Drive from self implemented Android application - android

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!

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 there an alternative to using the REST API for my Android app?

I have been struggling for many weeks to get the sample code at REST Android Quickstart to work properly, but I get a 403 error which I can't seem to fix as I cannot find the Drive SDK within the Developer Console to activate it for my app.
Now I am wondering if there is an alternative to using the REST method to achieve my original goal of creating an app that can create and edit text files within a users personal Google Drive account - NOT the Drive space allocated to the app itself - which I believe is a limitation of the Google Drive API (unless I'm mistaken)? Many thanks in advance.

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/

how to get user's address using address api of google play services 4.3 in android?

In the google i/o 2014 there was a vast introduction of new Google play services APIs. I learned that there is an API called address by which users don't have to put their address manually and this API will take all the information dynamically from his/her gmail account.
In my project I just want to set the address in a TextView but I didn't find any single tutorial on it over the internet. I have set the google play service library as a library project in my project but I cant do further on this occasion, any help?
You can refer this post from Android Developer blogspot to get more details
http://android-developers.blogspot.fr/2014/03/google-play-services-43.html
I searched lot for the same you want, there is no details available except the package details and this blog post,
In the post they have mentioned
That’s it for this time. Now go to work and incorporate these new features to make your apps even better!
And stay tuned for future updates.
I think they will come up with the tutorial and documentation in near future
Update: I got a hint from the the Google Opensource wallet sample,
You can get the the idea when you look at this file thoroughly
https://github.com/googlewallet/instantbuy-android/blob/f3ed08dfc13d843fe15c397c72df440ba32309e8/src/com/google/android/gms/samples/wallet/PromoAddressLookupFragment.java
I created a sample app based on this file and succeeded.

How do I use the clients_secret json with connecting to Google Drive api Android

I downloaded the clients_secret json from the API console. I have seen that I may need it from here: client_secret not available in client_secret.json
I am not sure how I should integrate it into my Android app, or what it's exactly for.
For one of my apps, I have gotten a 403 Forbidden error, when I followed an example.
Insight would be helpful with explanation.
If your goal is to learn how to correctly authorize your Android app to use the Drive API, then the quickstart guide is probably the way to go:
https://developers.google.com/drive/quickstart-android

Categories

Resources