Code example for DefaultHttpClient

Methods: getParams

     * Configures the httpClient to connect to the URL provided. 
    public static HttpClient getHttpClient() {
        HttpClient httpClient = new DefaultHttpClient();
        final HttpParams params = httpClient.getParams();
        HttpConnectionParams.setConnectionTimeout(params, HTTP_REQUEST_TIMEOUT_MS);
        HttpConnectionParams.setSoTimeout(params, HTTP_REQUEST_TIMEOUT_MS);
        ConnManagerParams.setTimeout(params, HTTP_REQUEST_TIMEOUT_MS);
        return httpClient;
     * Retrieve rss feed from server, perform sync and return newly fetched ads 
     * @param account The account being synced 
     * @param authtoken The authtoken stored in the AccountManager for this 
     *            account      
     * @return A list of ads that we need to insert locally