Skip to content Skip to sidebar Skip to footer

Android App - Java.net.socketexception: No Route To Host

I'm creating an android app which streams video from a media server. I'm using a list view for my channels and a switch statement to control the videos. In the switch statement the

Solution 1:

Did you enable javasctript on the view ?

webView.getSettings().setJavaScriptEnabled(true);

also, you should consider adding a colon at the end of the javascript statement.

webView.loadUrl("javascript:void(jwplayer().playlistItem(2));");

If there is nothing to do, try catching the exception and, try a certain number of times, there are some instabilities in webviews and httpclients in android.

Post a Comment for "Android App - Java.net.socketexception: No Route To Host"