2011/1/13 Brill Pappin <[email protected]>:
> 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
you are right!!!
but i have another question, how can i set the timeout for the "unable
to reach a DNS server"?? i use following code, but it can't work well,
it still wait long long times of 3 secs

int timeoutConnection = 3000;//mill-sec

            HttpConnectionParams.setConnectionTimeout(httpParameters,
timeoutConnection);

> 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

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