Hallo<br>
Wenn ich mit urlConnection eine Verbindung aufbaue ohne das ich online bin, bekomme ich eine UnknownHostException. Wenn ich nun online gehe ohne die Application neu zu starten erhalte ich auch weiterhin diese Exception und kann somit keine Verbindung aufbauen. Erst nachdem ich meine Application neu gestartet habe funktioniert alles.
<br><br>
URL url = new URL("http://www.java.de");
URLConnection connection = url.openConnection();
<br><br>
Leider habe ich noch keine Lösung für dieses Problem gefunden.<br>
Ich würde mich freuen wenn mir hier jemand weiterhelfen kann.
Gruß
Andreas
Wenn ich mit urlConnection eine Verbindung aufbaue ohne das ich online bin, bekomme ich eine UnknownHostException. Wenn ich nun online gehe ohne die Application neu zu starten erhalte ich auch weiterhin diese Exception und kann somit keine Verbindung aufbauen. Erst nachdem ich meine Application neu gestartet habe funktioniert alles.
<br><br>
URL url = new URL("http://www.java.de");
URLConnection connection = url.openConnection();
<br><br>
Leider habe ich noch keine Lösung für dieses Problem gefunden.<br>
Ich würde mich freuen wenn mir hier jemand weiterhelfen kann.
Gruß
Andreas
Comment