摘要: 调试中通过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,也就是说,代码中使用loc 阅读全文
posted @ 2011-06-22 11:26 qyf 阅读(331) 评论(0) 推荐(0) 编辑