Code example for AndroidHttpClient

Methods: close

0
    public synchronized void resetNetwork() { 
        (new Thread(new Runnable() {
            @Override 
            public void run() { 
                http.close();
                http = getHttpClient();
            } 
        })).start();
    } 
 
    /** 
     * @return true if the network is available. 
     */ 
    public synchronized boolean hasNetwork() { 
        return hasNetwork;
    } 
     
    /** 
     * @return user agent 
     */ 
    public String getUserAgent() {