Android emulator should be able to contact a localhost subdomain
I need to be able to send messages by http to localhost subdomain.
Since Android localhost is an adhoc ip, 10.0.2.2, I researched how to send a message to api subdomain because srp server needs that.
I solved that editing /system/etc/hosts: first remount /system with write permissions, then push with adb my new hosts file associating api.lvh.me to 10.0.2.2.
I'll have to do that everytime I restart the emulator.
(from redmine: created on 2013-04-02, closed on 2013-04-03)