2016-10-21 8 views
0

Spotifyをアプリケーションに統合したいが、起動するたびにエラーが発生する。私は初心者ガイドを試みましたが、同じ問題が再び発生しました。 protected void onActivityResult(int requestCode、int resultCode、intent intent){ super.onActivityResult(requestCode、resultCode、intent);私は、ブレークポイント、内部クラスの内部で停止することができましたが、それはonLoginFailed後(I 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()); 
       } 
      }); 
     } 
    } 
} 

それは何を意味するのでしょうか?私はこれを解決するために何をしなければならないのですか?

+0

あなたにはプレミアムアカウントがありますか? –

+1

DynDNSに対する巨大なDNS攻撃がインターネット上で問題を引き起こしていたのに対し、今日はいくつかの問題が発生していました。あなたはまだこれを再現できますか? –

答えて

0

Spotifyは現時点でDDOS攻撃を受けています。むしろDNS /トラフィックをホストする会社をDYNしてください。それについてhereを読んでください。また、自社のクイックつぶやきhere

関連する問題