Code example for Proxy

0
        	/* 
        	 * Some carriers unfortunately miss the A record in the DNS request, 
        	 * which causes the lookup to fail. Workaround is to create the 
        	 * address unresolved 
        	 */ 
            proxy = new Proxy(Proxy.Type.HTTP,
                    InetSocketAddress.createUnresolved(host, port));
        } 
 
        Log.d("createProxy", "returning proxy " + proxy);
        return proxy;
    } 
     
     
    //------------------------------------------------------------------------- 
    // keep-alive 
     
     
    /** 
     * Setting for if the implementation should allow the underlying sockets of 
     * the http connections to stay alive for reuse later.