How to enable your app connected to internet using proxy. Note: this only works http, still working on https.
private String fetchUsingProxy() throws IOException {
URL url = new URL("http://www.google.com");
Authenticator authenticator = new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {