0
IntentService의 onHandleIntent()에서 Google 드라이브 API에 연결하려고하는데 connect()가 아무 것도하지 않는 것 같습니다.Google API 콜백이 호출되지 않았습니다.
콜백 (onConnected, onConnectionSuspended, onConnectionFailed)이 호출되지 않습니다. 오류나 예외는 없으며 단지 침묵합니다.
@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는 콜백을 구현합니다.
아이디어가 있으십니까?
onHandleIntent가 호출되고 있습니까? – noogui
@noogui, 네 –