I am using the following code in android virtual Machine
try{
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPos
Did you declare the Internet permission in the AndroidManifest.xml?
You need to put the following into the AndroidManifest.xml
<manifest>
...
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
internet permission to your application by adding this under manifest
tag in your AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
otherwise Android will block internet traffic from your app