Android 未调用Google API回调
我正试图连接到IntentService的onHandleContent()中的Google Drive API,但connect()似乎什么都没做 没有调用任何回调(OnConnectiond、onConnectionSuspended、onConnectionFailed)。没有错误或例外,只是沉默Android 未调用Google API回调,android,google-api,google-drive-api,google-drive-android-api,Android,Google Api,Google Drive Api,Google Drive Android Api,我正试图连接到IntentService的onHandleContent()中的Google Drive API,但connect()似乎什么都没做 没有调用任何回调(OnConnectiond、onConnectionSuspended、onConnectionFailed)。没有错误或例外,只是沉默 @Override protected void onHandleIntent(Intent intent) { mGoogleApiClient = new GoogleApiClie
@Override
protected void onHandleIntent(Intent intent) {
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(Drive.API)
.addScope(Drive.SCOPE_FILE)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
mGoogleApiClient.connect();
}
IntentService实现回调
有什么想法吗?我可以通过降级到旧版本的Google Play服务来“修复”这个问题
我会把这个打开,以防有人有实际的修复。是否正在调用OnHandleContent?@noogui,是的