Google Docs Access

by Doug Gordon » Thu, 19 May 2011 03:31:19 GMT

Sponsored Links
 My app is mainly self-contained, interacting only with the user's 
databases, and does not use any web or cloud technology to do its thing. 
However, I'd like to add functionality to download database files from 
the user's Google Docs account to make it easier to transfer data.

There are docs online for the required APIs, but it really seems 
complicated and assumes prior knowledge of various web technologies 
(XML, JSON, HTTP headers, etc.) that are outside my realm of knowledge. 
It looks like a very steep learning curve just to perform this basic 
operation: obtain authentication, get a list of available docs to 
display, download selected doc file to the SD card.

Is there anyplace where I can find a tutorial on what I need to know, or 
possibly sample code? My experience in the past is that the 
documentation can make it seem more complex than it actually is: 20 
pages of confusing text, and then you see a sample implementation and 
it's just a couple dozen lines of code!

Any help getting me started on this would be appreciated!

  Doug Gordon
  GHCS Software


Re: Google Docs Access

by Nikolay Elenkov » Thu, 19 May 2011 09:41:57 GMT


Why would you want to use Google Docs to download database file? Is it
even possible? Put your files on a web server, use some sort of authentication
if you don't want everyone to download them, and you are set.

All Google API access libraries have sample code, so you might want to read it.
But see above, this might be overkill for what you are trying to do.


Sponsored Links

Re: Google Docs Access

by Doug Gordon » Thu, 19 May 2011 22:04:34 GMT

 The databases are user-generated, so I need a "public" solution. I
can't use my web server to store megabytes of data for thousands of
users, manage usernames and passwords, etc.


Re: Re: Google Docs Access

by Mark Murphy » Thu, 19 May 2011 22:13:42 GMT


Support for Google Docs APIs can be found on the Google Docs Web sites, such as: 

Mark Murphy (a Commons Guy)  |  | 

Android 3.0 Programming Books: 


Re: Re: Google Docs Access

by Nikolay Elenkov » Thu, 19 May 2011 22:27:32 GMT


You are definitely not getting thousands of users support for free.
Still not clear why you think Google Docs is going to do it for you,
but good luck anyway.


Other Threads

1. Using a 3rd party shared library for a mediaplayerinterface implementation

So what I want to do is the following. I want to add another player to
work besides opencore,vorbis and midi. I have implemented this in a
way similar to the midi player. I have edited the make file of
libmediaplayerservice to include my source and my lib. First I push my
lib and then I try to use it. I have gone through a lot of relevant
topics and have followed the instructions there but to no succes. See
if you can spot anything wrong in my makefile. I have included my .so
lib in the same folder as the makefile.

LOCAL_PATH := $(call my-dir)
# libmediaplayerservice

include $(CLEAR_VARS)

LOCAL_PREBUILT_LIBS :=   <- my lib



include $(CLEAR_VARS)

LOCAL_SRC_FILES:=               \
        MediaPlayerService.cpp \
        MetadataRetrieverClient.cpp \
        VorbisPlayer.cpp \
        AlPlayer.cpp \               <-My player file

ifneq ($(BUILD_WITHOUT_PV),true)
LOCAL_SRC_FILES+=               \

ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
LOCAL_LDLIBS += -ldl -lpthread

        libcutils \
        libutils \
        libvorbisidec \
        libsonivox \
        libmedia \
        libAlEngine \                             <- Here I try to use my

ifneq ($(BUILD_WITHOUT_PV),true)
        libopencore_player \

LOCAL_C_INCLUDES := external/tremor/Tremor \
        $(call include-path-for, graphics corecg)

ifeq ($(BUILD_WITHOUT_PV),true)

LOCAL_MODULE:= libmediaplayerservice


I have tried alot of things but this seems the way its supposed to be
done. And I get the following error :

target SharedLib: libmediaplayerservice (out/target/product/generic/
4.2.1/../../../../arm-eabi/bin/ld: skipping incompatible out/target/
product/generic/obj/lib/ when searching for -lAlEngine
4.2.1/../../../../arm-eabi/bin/ld: cannot find -lAlEngine
collect2: ld returned 1 exit status
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
Error 1

So he cannot find the lib I just pushed and it is definatly there just
"incompatible". Any thoughts?


2. Disable XSL transforms in HTTPClient

Does anyone know how to avoid the XSL transforming that is taking
place in the HTTPClient? I just want the raw xml.


3. Resetting checkboxes in a dialog with .setMultiChoiceItems()

4. A simple question regarding inter-process communication.

5. Launch android emulator on mingw/msys, but failed

6. HTC Magic, is PhoneNumberUtils.PAUSE different?

7. How To Call Methods Of Activity From A Service