Code example for Context

Methods: getContentResolver

0
     * @param secureSetting The setting key whose value contains the HTTPS URL. 
     * @param prettySetting The setting key whose value contains the pretty URL. 
     * @return This {@link GoogleWebContentHelper} so methods can be chained. 
     */ 
    public GoogleWebContentHelper setUrlsFromGservices(String secureSetting, String prettySetting) {
        ContentResolver contentResolver = mContext.getContentResolver();
        mSecureUrl = fillUrl(Settings.Gservices.getString(contentResolver, secureSetting),
                mContext);
        mPrettyUrl = fillUrl(Settings.Gservices.getString(contentResolver, prettySetting), 
                mContext);
        return this;
    } 
     
    /** 
     * Fetch directly from provided urls. 
     *  
     * @param secureUrl The HTTPS URL. 
     * @param prettyUrl The pretty URL. 
     * @return This {@link GoogleWebContentHelper} so methods can be chained. 
     */ 
    public GoogleWebContentHelper setUrls(String secureUrl, String prettyUrl) {