title: Android:create a proxy server
body: <p>How can i create a proxy server to monitor my users in my android..</p>
  
  <p>I tried to create proxy server using this code ..But that not getting created..Did i do anything wrong in that please state..</p>
  
  <pre><code>public void setProxy(DefaultHttpClient httpclient) {  
      final String PROXY_IP = "127.0.0.1";  
       final int PROXY_PORT = 8080;  
  
       httpclient.getCredentialsProvider().setCredentials(  
               new AuthScope(PROXY_IP, PROXY_PORT),  
               new UsernamePasswordCredentials(  
                       "root", "password"));  
  
      HttpHost proxy = new HttpHost(PROXY_IP, PROXY_PORT);  
  
      httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,  
              proxy);  
  
  }  
  </code></pre>