android-sample
android-sample copied to clipboard
Sample : Host name may not be null
When I am trying to use your sample app and play radio i get ERROR
Exception occured java.lang.IllegalArgumentException java.lang.IllegalArgumentException: Host name may not be null at org.apache.http.HttpHost.<init>(HttpHost.java:88) at org.apache.http.impl.client.AbstractHttpClient.determineTarget(AbstractHttpClient.java:529) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:519) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:497) at com.deezer.sdk.player.impl.HipHop.accordion(Unknown Source) at com.deezer.sdk.player.impl.HipHop.accordion(Unknown Source) at com.deezer.sdk.player.impl.HipHop.accordion(Unknown Source) at com.deezer.sdk.player.impl.HipHop$Blues.run(Unknown Source) at java.lang.Thread.run(Thread.java:818)
mDeezerConnect = new DeezerConnect(this, SAMPLE_APP_ID);
mRadioPlayer = new RadioPlayer(getApplication(), mDeezerConnect,
new WifiAndMobileNetworkStateChecker());
mRadioPlayer.playRadio(RadioType.RADIO, radio.getId()); // <-- in this plaсе error occured