Code example for AndroidHttpClient

Methods: close

0
    public boolean supportsSuggestions() { 
        return mSearchEngineInfo.supportsSuggestions();
    } 
 
    public void close() { 
        mHttpClient.close();
    } 
 
    public boolean supportsVoiceSearch() { 
        return getName().equals(SearchEngine.GOOGLE);
    } 
 
    private boolean isNetworkConnected(Context context) {
        NetworkInfo networkInfo = getActiveNetworkInfo(context);
        return networkInfo != null && networkInfo.isConnected();
    } 
 
    private NetworkInfo getActiveNetworkInfo(Context context) {
        ConnectivityManager connectivity =
                (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
        if (connectivity == null) {