1

I'm trying to put a text document with highscores inside a bucket on the google cloud storage. So far, so good.

Now I want my app to open this textfile in the bucket, check if there is a new highscore, adapt the file and write it back into the bucket.

I´m trying to find example code, since that makes more sense to me for understanding than the apis, but I´m not able to find it.

The answers I get are all, it´s just simple get and put callbacks, but since it ain't simple for me, I was hoping somebody has a link to an example for an android app using google cloud storage and reading and writing online.

I found this information, but would love to see an example for android in eclipse: http://code.google.com/intl/nl-NL/appengine/docs/python/googlestorage/functions.html

If I'm creating an app in Eclipse, can I use the bucket in the google cloud? Or don't I or future users have access to that bucket for read and write?

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Diego
  • 4,011
  • 10
  • 50
  • 76

2 Answers2

2

Look at the Google api client libraries for java. Google storage has a Json Api (currently in beta and you must email to get turned on). The client libs are fairly straight forward once you get your head around it. All google apis are accessed in the same manner. You can use the Android Tasks example to learn from and apply it to Google Storage Api.

http://code.google.com/p/google-api-java-client/wiki/APIs#Tasks_API

Patrick Jackson
  • 18,766
  • 22
  • 81
  • 141
1

Since you want to change files, I would advise to use Google Appengine's Blobstore or either save images as BlobProperty in GAE. CloudStorage is more for static files, I believe.

Community
  • 1
  • 1
husayt
  • 14,553
  • 8
  • 53
  • 81