I am using the following code in android virtual Machine
try{ HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPos
internet permission to your application by adding this under manifest tag in your AndroidManifest.xml
manifest
AndroidManifest.xml
otherwise Android will block internet traffic from your app