Code example for HttpParams

Methods: setLongParameter

    public boolean onCreate() { 
        mHttpClient = new GoogleHttpClient(getContext(), USER_AGENT, false /* not gzip capable */);
        HttpParams params = mHttpClient.getParams();
        params.setLongParameter(HTTP_TIMEOUT, HTTP_TIMEOUT_MS);
        // NOTE:  Do not look up the resource here;  Localization changes may not have completed 
        // yet (e.g. we may still be reading the SIM card). 
        mSuggestUri = null;
        return true; 
     * This will always return {@link SearchManager#SUGGEST_MIME_TYPE} as this 
     * provider is purely to provide suggestions. 
    public String getType(Uri uri) {
        return SearchManager.SUGGEST_MIME_TYPE;