Code example for HttpClient

Methods: getParams

0
     * Configures the httpClient to connect to the URL provided. 
     */ 
    public static void maybeCreateHttpClient() { 
        if (mHttpClient == null) {
            mHttpClient = new DefaultHttpClient();
            final HttpParams params = mHttpClient.getParams();
            HttpConnectionParams.setConnectionTimeout(params,
                REGISTRATION_TIMEOUT);
            HttpConnectionParams.setSoTimeout(params, REGISTRATION_TIMEOUT);
            ConnManagerParams.setTimeout(params, REGISTRATION_TIMEOUT);
        } 
    } 
 
    /** 
     * Executes the network requests on a separate thread. 
     *  
     * @param runnable The runnable instance containing network mOperations to 
     *        be executed. 
     */ 
    public static Thread performOnBackgroundThread(final Runnable runnable) {
Connect your IDE to all the code out there  Get Codota for Java