Hii mi name is alberto i am from Mexico, i am not speak Inglish, for this note is exelente.. very good...
El martes, 29 de enero de 2008 06:58:09 UTC-6, Rick Genter escribió: > > On Jan 29, 2008, at 3:09 AM, n2 wrote: > > > > > Hello! > > i am working on an android client which is calling methods of a REST > > web service. I am using the commons HttpClient of the android api. > > When i am calling a simple get method with HttpClient in the android > > emulator i get an exception, message is "Connection refused". I cant > > see any stacktrace, but this is a another problem (Logging in > > android??) > > > > The (dummy) URL which is called: > http://localhost/itsmyphone-server/rest/this/is/a/method > > When i am loading this URL with my browser everything is fine. When i > > am calling this Url by HttpClient in a JUnit test outside of android > > everything works fine, response is ok, no error. > > > You can't use localhost; localhost is the (emulated) phone. You need > to specify the IP address or DNS name of the actual web server. > -- > Rick Genter > [email protected] <javascript:> > > -- 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

