title: Using Proxy Server in Android Application
body: <p>I am making an Android Application for giving PNR status to the input pnr using a json api. But as I am using institute wifi to access network for accessing internet from my android cell phone, so I had set up proxy using the conventional java lines </p>
  
  <pre><code>System.getProperties().put("http.proxyHost", "10.3.100.211");
  System.getProperties().put("http.proxyPort", "8080");
  </code></pre>
  
  <p>But when I run the application it abruptly stops. If I comment out the lines the connection is not established but the application runs fine. So could someone help me in how to set up proxy in my application.</p>