Why I am getting the HttpHostConnectException

后端 未结 2 1490
情歌与酒
情歌与酒 2020-12-30 11:59

I am using the following code in android virtual Machine

 try{
       HttpClient httpclient = new DefaultHttpClient();
       HttpPost httppost = new HttpPos         


        
2条回答
  •  一整个雨季
    2020-12-30 12:31

    internet permission to your application by adding this under manifest tag in your AndroidManifest.xml

    
    

    otherwise Android will block internet traffic from your app

提交回复
热议问题