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
你仍然遇到這個問題? –