Unable to get the shared with me files with the Google Drive Api using Filters.sharedWithMe()

*爱你&永不变心* 提交于 2019-12-01 14:14:30
samu

As said also on unable to query the files "shared with me" from google drive using Google drive api android , at the moment drive apis let you access only data in drive made by your app.

you can verify by yourself by changing Query query = new Query.Builder().addFilter(Filters.sharedWithMe()).build(); in Query query = new Query.Builder().build();

and you see only one folder, named "App Data"

to access other files you need to use drive java api, as told in https://developers.google.com/drive/android/auth#connecting_and_authorizing_the_google_drive_android_api

Note: The Google Drive Android API currently only supports drive.file and drive.appfolder authorization scopes. If your application requires additional permissions or features not yet available in the Drive Android API, you must use the Google APIs Java Client.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!