It's a problem with your Wifi or carrier.

The error is a standard one and not specific to phones or Android.

It means that when your network stack got the domain name and tried to
convert it to a network address, it was unable to reach a DNS server
that knew what the domain address was.

For example, if you used the hosts IP address, you would *never* get
this error unless the address didn't exist (and even then i think its
a different exception).

- Brill Pappin

On Jan 12, 2:32 pm, Ankur Avlani <[email protected]> wrote:
> Hi All,
>
> I am developing an application on Android.  I have seen that at times when I
> try to connect using HttpURLConnection, for getting an Image or anydata, I
> get the following error:
>
> 01-12 11:24:05.073: WARN/System.err(16780): java.net.UnknownHostException:
> Host is unresolved:www.XXX.com:80.
>
> Note: I get this error on my Motorolla Droid and not in emulator.
>
> Any ideas?
>
> Thanks,
> Ankur

-- 
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

Reply via email to