Friday, January 4, 2013

[android-developers] using IP address 10.0.2.2 for android simulator works, but how do I point to localhost when testing on android device?

I have ruby on rails web server that my android application talks to.
When I connect to 10.0.2.2 on android simulator, it successfully makes
contact to web server. However, it does not when I test it on the
actual android device using a usb connection and using eclipse. I am
forced to use the real live ip address, but I dont want to have to
deploy live for every little change i need to make when testing on
device. What options are available?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate