是否可以从模拟器测试httpconnection

时间:2015-02-05 12:45:23

标签: android

I am working on a httpconection example to connect to a remote server and get back the xml,i am following vogella tutorial,but i am getting unable to find www.vogella.com ,address cannot be resolved.I am trying this from emulator,so wanted to know if a connection can be made via emulator ?If yes why is this not working out.

以下是我使用互联网和访问网络状态尝试的权限清单

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
                package="com.example.sheetal.parsing" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
 <application>
     ......        
 </manifest>

0 个答案:

没有答案