I am trying to create empty folder for my android app..
File body = new File();
body.setTitle("title");
java.io.File fileContent = new java.io.File("title");
FileContent mediaContent = new FileContent("application/vnd.google-apps.folder", fileContent);
File file = service.files().insert(body, mediaContent).execute();
This doesnt seem to work.....
Getting exception:
java.io.FileNotFoundException:/title open failed ENOENT ( no such file or directory)
Caused by: libcore.io.ErrnoException: open failed: ENOENT (no such file or directory)
Solved...
It will create folder named title in google drive.
hmmm, I get "Insufficient permission [403]" error