0
Spotify를 내 응용 프로그램에 통합하려고하지만 실행될 때마다 오류가 발생합니다. 나는 그들의 초보자 가이드를 시도했지만, 같은 문제가 다시 발생했습니다. protected void onActivityResult (int requestCode, int resultCode, 의도 의도) { super.onActivityResult (requestCode, resultCode, intent); 내가 브레이크 포인트가 내부 클래스 내부에 막을 수 있었다, 그러나 그것은 onLoginFailed 후 (내가 int) 메소드는 매개 변수 (9)로 실행 된을 사용하는 경우Spotify에서 트랙을 재생할 수 없습니다
// Check if result comes from the correct activity
if (requestCode == REQUEST_CODE) {
AuthenticationResponse response = AuthenticationClient.getResponse(resultCode, intent);
if (response.getType() == AuthenticationResponse.Type.TOKEN) {
Config playerConfig = new Config(this, response.getAccessToken(), CLIENT_ID);
Spotify.getPlayer(playerConfig, this, new SpotifyPlayer.InitializationObserver() {
@Override
public void onInitialized(SpotifyPlayer spotifyPlayer) {
mPlayer = spotifyPlayer;
mPlayer.addConnectionStateCallback(MainActivity.this);
mPlayer.addNotificationCallback(MainActivity.this);
}
@Override
public void onError(Throwable throwable) {
Log.e("MainActivity", "Could not initialize player: " + throwable.getMessage());
}
});
}
}
}
그것은 무엇을 의미 하는가? 이 문제를 해결하려면 어떻게해야합니까?
프리미엄 계정이 있으십니까? –
DynDNS에 대한 막대한 DNS 공격으로 인해 인터넷에서 문제가 발생하는 동안 우리는 오늘 몇 가지 문제를 겪고있었습니다. 아직도 이것을 재현 할 수 있습니까? –