0

I've followed this tutorial and running this code. File and folder creation examples work fine. But example to "Retrieve file contents", "Creating file under a folder" doesn't work. They keep giving error message like this: "DriveId is not found. Are you authorized to see this file". I've made sure that the "EXISTING_FILE_ID" does exist (first, created a file and then used its file id to retrieve contents). I'm not sure what am I doing wrong.

Anyone out there got these examples working ?

bianca
  • 7,004
  • 12
  • 43
  • 58
  • Your 'EXISTING_FILE_ID' complaint might have been addressed [here](http://stackoverflow.com/search?q=%5Bgoogle-drive-android-api%5D+EXISTING_FILE_ID). – seanpj May 13 '15 at 09:52

1 Answers1

0

The demos you're pointing to do work in my environment, and the way you put the question is too broad to answer. More like a complaint. You have to be more specific if you want to get a specific help (code causing problem, ...). So there is nothing to answer here...

I can only point you to another piece of code, this DEMO, that may get you off-the-ground. It takes a different path to show the basic GDAA's CRUD functionality of Google Drive. You may have a better luck.

seanpj
  • 6,735
  • 2
  • 33
  • 54
  • Thanks for the pointers ! I wish GDAA provided some straightforward way to get resourceId for file/folder. – bianca May 13 '15 at 18:04
  • Here's my [cheatsheet](https://github.com/seanpjanson/GDAADemo/blob/master/src/main/java/com/andyscan/gdrtdemo/GDAA.java#L312). Be careful though, it may take a while [until you get it](http://stackoverflow.com/questions/22874657/unpredictable-result-of-driveid-getresourceid-in-google-drive-android-api) from GDAA. – seanpj May 13 '15 at 18:33