Writing to Google Drive from an Android app - android

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

Related

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 can I delete Google drive file on android app

I am a developer and currently working on google drive API on android.
I can query and create file/folder from my app using GoogleApiClient; however, I cannot delete the files from my app.
After I google it and I found out that the newest google drive Android API has not supported it yet.
So, are there other ways to delete files from android app?
The answer is here - SO 22295903, just combine with the old API. Or wait, DELETE has been promised soon.
In SO 22295903, there is a mention of reverting to the RESTful API. I have not done it myself, but I think you would take the resource ID, DriveId.getResourceId() and apply it to the trash or delete method. But it is only an untested idea, so don't shoot me.

Include Android Google Play Services failed?

I'm trying to include Google Play Services in my project to use Google Maps Android API v2, based on steps provided by Google in this link Google Play Service Setup
But unfortunately, the include process always ends with a red cross next to the included project as in the next image:
How to solve this ?
I know this is a bit late but I recently had this problem and what solved my problem was simply making sure that the library and project were on the same partition. Once i put them on the same partition it started working fine.

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