[android-developers] Re: unknownhostexception in my app on device

2009-07-16 Thread biAji



On Jul 14, 1:19 pm, ravi  wrote:
> Hi Vinod,
> I have given Internet permission in Manifest.xml file. Currently
> problem is 40% times it work fine 60% time it gives unknown host
> exception. I don't why it it happens few times only?

It looks the DNS server you are using for test not act properly.

 Consider change to another one?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: unknownhostexception in my app on device

2009-07-13 Thread ravi

Hi Vinod,
I have given Internet permission in Manifest.xml file. Currently
problem is 40% times it work fine 60% time it gives unknown host
exception. I don't why it it happens few times only?
Regards,
Ravi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: unknownhostexception in my app on device

2009-07-12 Thread Desu Vinod Kumar
Hi

Are u given the Internet Permission in Android Manifest file.


On Mon, Jul 13, 2009 at 11:16 AM, ravi  wrote:

>
> Hi All,
>   I have installed my application for picasa on G1 device and is
> trying to login to google through googl API. Sometime I am able to
> login but sometime it gives me
>
> IOException java.net.UnknownHostException: Host is unresolved:
> www.google.com:443
>
> my  code is
> static AndroidHttpClient mClient = AndroidHttpClient.newInstance
> ("Android-Camera1/0.1");
> HttpPost post = new HttpPost("https://www.google.com/accounts/
> ClientLogin");
>//post.setHeader("Content-Type","application/x-www-form-
> urlencoded");
>String urlString="accountType=HOSTED_OR_GOOGLE&Email=";
>urlString +=mPicasaUsername;
>urlString += "&Passwd=";
>urlString += passwd;
>urlString +=
> "&service=lh2&source=Gulp-CalGulp-1.05";
>System.out.println("urlString for authentication is
> " + urlString);
>StringEntity entity = new StringEntity(urlString);
>entity.setContentType(new
> BasicHeader("Content-Type", "application/
> x-www-form-urlencoded"));
>post.setEntity(entity);
>HttpResponse status = mClient.execute(post);
> kindly someone help how to get get rid of this problem.
> Thanks,
> Ravi
> >
>


-- 
Regards
---
Desu Vinod Kumar
vinny.s...@gmail.com
09916009493

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---