0

I have started developing a app in which i have to list of all folders and files from google drive.

I have go through all the documentation and below demo links as suggested in this stack overflow answer,

https://github.com/googledrive/android-demos

And

https://github.com/seanpjanson/RESTDemo

I have make these both demo working properly. But I am not able to list out all the folders and files of google drive. Currently i can only list out those files which are created by app only. If there is any other folder created from web then it is not showing in the log or list.

Can any one help me on this. Any link, suggestion , guidance will be helpful.

I am having a doubt that may be this is not allowed but there is a sample app which is BubbleUPnP in this app they have listed the folders and files. How can i achieve this in my app ?

Any help will be appreciated.

Community
  • 1
  • 1
Wolverine
  • 4,264
  • 1
  • 27
  • 49
  • Did you use the Google Drive API ? Look here : https://developers.google.com/drive/android/intro or https://developers.google.com/drive/v2/reference/files/list – AymericB Dec 07 '15 at 14:51
  • 1
    In the 'init()' method [here](https://github.com/seanpjanson/RESTDemo/blob/master/app/src/main/java/com/spjanson/restdemo/REST.java), use 'DriveScopes.DRIVE' scope. And stay with the REST Api, GDAA has only FILE scope. – seanpj Dec 07 '15 at 18:44

1 Answers1

1

You need to request the correct Scope.

https://developers.google.com/drive/v3/web/about-auth#AboutAuthorization

To have full access to all files\folders requires the scope: https://www.googleapis.com/auth/drive

Kuffs
  • 35,581
  • 10
  • 79
  • 92