Well, if it happens sometimes, then your network has a problem. When it happens, just to make sure that other apps also are affected by this, just open some page on the browser. You will be then sure that this is not affecting your app only, but the emulator or the network has a problem.
Thanks and Regards, Kumar Bibek On Apr 23, 5:07 pm, ls02 <[email protected]> wrote: > From time to time I get java.net.UnknownHostException when calling > HttpURLConnection.connect. Obviously the server does exist and I can > successfully execute the same URL on my PC browser. The problem does > not happen always, only sometimes. But if it does happen ussually I > need to restart the app so that I can connect to server again. I > specify host name not IP address, I cannot use IP address. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

