How to call that webapi from android app?..
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost("http://localhost:23941/api/Default1/Create");
HttpHost proxy = new HttpHost("192.168.1.16", 8080);
httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
httpPost.setEntity(new UrlEncodedFormEntity(args));
httpPost.setHeader("Content-type", "application/json");
HttpResponse response = httpClient.execute(httpPost);
Like above i am calling webapi but it is not hitting the webapi(kept breakpoint in webapi).
Like above i am calling webapi but it is not hitting the webapi(kept breakpoint in webapi).
Santhakumar MunuswamyPosted Feb 7, 2015, 2:47 AM
Could you please refer below url
http://hintdesk.com/how-to-call-asp-net-web-api-service-from-android/
I hope you will get idea if you really helpful Please "Mark Answer"