I ve read a bunch of articles on SO and around the web that all tell me that the android emulator connects to my machine with the ip address 10.0.2.2
when using localhost
. Unfortunately I m not using localhost
, I ve edited my hosts file so that I connect to local.blah.com
when I want to view my webpage.
我认为,如果我在东道文件中写到:10.0.2.2 local.blah.com
,那么我就能够看到我正在编造的 and。 (如果这不是一个好的假设,请更正我)
So 我的问题是,我可以尝试获得我的<代码> 当地. url,在 and的推介器上工作。