Google Docs / Drive for editing Spreadsheet on Android - 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/

Related

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.

User interface and selective sync in google drive / google spreadsheet

Hi I am new to android development and planning to develop a spreadsheet application, which should allow the user to
1) Create and edit a spreadsheet file in local device
2) Have file level control to allow/disallow syncing with google drive. Google credentials could be asked only if the user is interested in syncing.
My questions are:
1) Does google Drive/ Google spreadsheet provide any APIs for user interfaces? What will be the best way to implement the user interface?
2) Is selective syncing possible using google drive / google spreadsheet API?
The two spreadsheet api are: google-apps-script and google-spreadsheet-api ...
Google apps script has good docs and is of good quality, but I suspect google-spreadsheet-api
will be a better fit for android development, but depends on your needs.
The google CellDemo.java demo gives a good overview of the spreadsheet api. https://code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/spreadsheet/cell/CellDemo.java
There is also ethercalc - it is a web based spreadsheet, good quality, all open source.
Yes you can. Google providing API for this. Kindly check this google developers link for more information. I hope you are familiar with designing of spreadsheet like layout and all in your app. If that thing is achieved, you can do it this also by putting small effort.

Writing to Google Drive from an Android app

I'm working on an Android app where I need to write to a Google Drive spreadsheet. There's a quick start video on "Google Developers Live" that seems to go through most of the required steps, but for the library usage they just say to click some button in Eclipse. I'm not using Eclipse though and would like to make this work with a maven project.
What libraries are required and how can I get them all using maven?
Here's the part of the video I'm talking about: http://youtu.be/Ied1CjJ0iP0?t=9m41s
Also, I've found this SO post and the latest edit says to use the Drive API V2 but a google api client is linked. I'm not exactly sure what's needed or if perhaps something has changed since then.
You should use the Google API Java Client. Downloads for Drive are here: https://code.google.com/p/google-api-java-client/wiki/APIs#Drive_API

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