1
我想创建一个应用程序来浏览位于根文件夹中的谷歌驱动器中的所有文件。问题是我可以设置仅用于创建和浏览文件的权限。但我必须通过浏览器浏览我在谷歌驱动器上传的文件。谷歌硬盘故障
@Override
protected void onResume() {
super.onResume();
if (mGoogleApiClient == null) {
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(Drive.API)
.addScope(Drive.SCOPE_FILE)
.addScope(Drive.SCOPE_APPFOLDER) // required for App Folder sample
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
}
mGoogleApiClient.connect();
}
文件范围内,就可以访问到你的应用程序打开的文件。 查看使用驱动器范围所需的所有文件。 不幸的是,Android Drive API不支持云端硬盘范围。 虽然您可以使用Drive REST API。另见这里:http://stackoverflow.com/questions/23341776/google-drive-sdk-drive-scopes – Anatoli
你仍然遇到这个问题? –