Code example for Scheme

0
                } catch (Exception ignored) {
                } 
            } 
        }; 
        client.getConnectionManager().getSchemeRegistry()
                .register(new Scheme("https", socketFactory, 443));
    } 
     
    public static void setApplicationContext(Context applicationContext) {
        if (mApplicationContext == null) {
            mApplicationContext = applicationContext;
            try { 
                sUserAgent += "/"
                        + applicationContext.getPackageManager().getPackageInfo(
                                applicationContext.getPackageName(), 0).versionCode;
            } catch (NameNotFoundException ignored) {
                // this isn't much important, just ignore if the version could 
                // not be retrieved. 
            } 
        } 
Connect your IDE to all the code out there  Get Codota for Java