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:

 http://code.google.com/apis/documents/forum.html 

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android 3.0 Programming Books:  http://commonsware.com/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. Help with dialog sizing in stock vs. Sense UI

Hello, I have an AlertDialog with a custom View content.  The View is
defined as:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
                        android:layout_width="fill_parent"
                        android:layout_height="0dp"
                        android:layout_weight="1"
                        android:fillViewport="true">
</ScrollView>


On stock Android 2.1, the dialog nicely stretches to the width of the
screen (480x800) pixels, but on the Sense UI, it's only as wide as the
longest text field in the dialog.  What happens is that the rightmost
button on the bottom of the dialog is cut off and wraps to two lines
in the middle of the word.

Has anyone seen this issue or has any ideas on fixing it?

So far I've tried giving a specific width in layout_width, but it does
nothing on stock Android, and I don't have a Sense UI device to test
on.

Perhaphs a related question is, is there any way to force an
AlertDialog to use the entire available width of the screen?

-- 

2. Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

Same data, same code, but different results on these two devices.

On the Nexus One, the (INNER JOIN) query runs (first call to
Cursor.moveToNext()) after a fraction of a second but on the Hero it
just hangs.

I haven't been able to reduce the scenario to something simple yet,
but it seems to involve using OR within an ON clause.

Anyone know why there might be a difference on these two devices?

-- 

3. Mod: Thanks to Boss Iskandar gilaoriginal @ Surabaya

4. Dibutuhkan Programmer Android

5. onHandleIntent(Intent) method does not get called

6. How to on Gps in emulator

7. Background apps (Instant Messaging) being killed without user notification