摘要:
调试中通过android simulator模拟器链接localhost或者127.0.0.1,因为我在电脑上面建立了apache,我的代码大概就是URL url = new URL(urlString); URLConnection urlconn = url.openConnection();但是报错了!!Exception 1:java.net.ConnectException: localhost/127.0.0.1:8080 -Connection refused问题是这样的,android模拟器(simulator)把它自己作为了localhost,也就是说,代码中使用localh 阅读全文
posted @ 2012-02-22 14:44
eagle89
阅读(466)
评论(0)
推荐(0)

浙公网安备 33010602011771号