Code example for AndroidHttpClient

Methods: getParams

0
    private final AndroidHttpClient mHttpClient;
 
    public OpenSearchSearchEngine(Context context, SearchEngineInfo searchEngineInfo) {
        mSearchEngineInfo = searchEngineInfo;
        mHttpClient = AndroidHttpClient.newInstance(USER_AGENT);
        HttpParams params = mHttpClient.getParams();
        params.setLongParameter(HTTP_TIMEOUT, HTTP_TIMEOUT_MS);
    } 
 
    public String getName() {
        return mSearchEngineInfo.getName();
    } 
 
    public CharSequence getLabel() {
        return mSearchEngineInfo.getLabel();
    } 
 
    public void startSearch(Context context, String query, Bundle appData, String extraData) {
        String uri = mSearchEngineInfo.getSearchUriForQuery(query);
        if (uri == null) {
Connect your IDE to all the code out there  Get Codota for Java