OKOK, I think I found out what the issue is, but can't explain why. I
was trying to connect to a webservice located on the same machine as
the emulator was running. I tried referring to the local machine by IP
and by name, but I always get the "no route to host" error. But when I
connect to the same webservice, but hosted on a different machine
altogether, it works fine! So, what am I missing here?

On Jan 6, 8:55 pm, Kenn Min Chong <[email protected]> wrote:
> I don't get it. I'm having this issue in the emulator. Is this an
> emulator only issue or  it affects real devices too? This used to not
> do this, did a recent SDK update break this functionality?
>
> On Jan 6, 8:28 pm, Wayne Wenthin <[email protected]> wrote:
>
> > You are not alone.   I have this every once in awhile,  I know that they
> > have already logged in due to where it generates the error.   It's annoying
> > to say the least.  I'm now working on catching the exception and retrying
> > since it is just trying to put a json object to my server
>
> > On Wed, Jan 6, 2010 at 3:07 PM, Kenn Min Chong <[email protected]> wrote:
>
> > > Hey guys!
> > >   So, this is very frustrating. I already have
>
> > > <uses-permission android:name="android.permission.INTERNET"></uses-
> > > permission>
>
> > > in my manifest, but when my application tries to make a webservice
> > > call (I'm using a HttpURLConnection object to do this via connect()
> > > method), I'm getting an exception of "No route to host".
>
> > > The built-in Browser application is able to access the internet
> > > properly, so I'm guessing it's something in my project. Any ideas?
>
> > > Kenn.
>
> > > --
> > > 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]<android-developers%[email protected]>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Writing code is one of few things
> > that teaches me I don't know everything.
>
> > Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums
-- 
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