2

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?

Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
  • What makes you think that Google Document List API is not support in Android? In fact the Google Drive API is not really intended to be used for Android (see restrictions, e.g. need of installation through Chrome Web Store https://developers.google.com/drive/apps_overview and yes this is also needed for Android Apps) – HelmuthB Jun 08 '12 at 11:59
  • read the bottom of the page : http://code.google.com/p/gdata-java-client/ "Since GData Java Client Library does not support Android, Android developers should instead use the new library Google API Client Library for Java.". Google Document List API is heavily depending on GData. – Cheok Yan Cheng Jun 08 '12 at 16:45

1 Answers1

2

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...

Community
  • 1
  • 1
Hephaestus
  • 1,982
  • 3
  • 27
  • 35
  • Yes. You are right. After several days of try-n-error, I decide to give up, by write my own raw HTTP request and XML parser, to achieve my files and directories listing purpose. – Cheok Yan Cheng Jun 15 '12 at 18:18
  • Wow, really? Writing your own XML parser, instead of using an existing library? (Although, I guess that if you know in detail what the XML response will look like, you avoid a lot of overhead by crafting a custom parser. Is that your rationale?) – Hephaestus Jun 15 '12 at 20:25