[android-beginners] Re: a problem with connection Http

2009-09-07 Thread Zonakusu
What do you get? nothing? an uncaught exeption (forced quit) or maybe something else? Use LogCat, that will show you detailed information about your application. I use URL and URLConnection to simply load data from the net, this works like a charm. But I think i'll have to agree with Justin, you

[android-beginners] Re: a problem with connection Http

2009-09-06 Thread Smelly Eddie
Can you access the web with the emulator? I get hostname can not be resolved errors in similar code as above. Do I specify my pc as a proxy or something? On Jul 22, 11:16 am, Justin (Google Employee) j...@google.com wrote: My guess is you are using the emulator here. To the emulator,

[android-beginners] Re: a problem with connection Http

2009-09-06 Thread Chi Kit Leung
you have to set the premissions for internet. Please read: http://www.itblogs.info/index.php/2009/07/27/android-apps-internet-permission?blog=6 On Mon, Sep 7, 2009 at 5:04 AM, Smelly Eddie ollit...@gmail.com wrote: Can you access the web with the emulator? I get hostname can not be resolved

[android-beginners] Re: a problem with connection Http

2009-07-22 Thread Justin (Google Employee)
My guess is you are using the emulator here. To the emulator, localhost will refer to the emulator itself. It is its own virtual device, you may consider it its own entity on the network, so you'll need to use a proper hostname or IP address for the servlet you want to access. Cheers, Justin