Android connect to java servlet
<p>my application is client/server app, the client is android application and the server is jave tomcat server</p>

<p> i build a servlet on the server and send data from android to it and everything is going right</p>

<p>now i want to build another servlet , i did that excatly the same way i did the first servlet , but it seems that there is no connection between client and this servlet because when the servlet got a request , i print some data on the server's console , but nothing displayed</p>

<p>code android</p>

<pre><code>for (int i = 0; i &lt; 20; i++) {
                publishProgress(5);
                try {
                    Thread.sleep(88);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
            dialog.dismiss();

            Boolean result = null;
            URI website;
            try {
                HttpClient client = new DefaultHttpClient();
                website = new URI(
                        "http://10.0.2.2:8080/LocalizedBasedComptitionServer/JoinCompetition");
                HttpPost request = new HttpPost();
                request.setURI(website);
                HttpResponse response = client.execute(request);
</code></pre>

<p>code servlet</p>

<pre><code>protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // TODO Auto-generated method stub
        System.out.println("Italy Roma");
    }
</code></pre>

<p>the progress bar in the client appear, what am i doing wrong ?</p>
