Code example for WebSettings

Methods: setUserAgentString

0
        if (force && mobile) {
            mWebSettings.setUserAgentString(USER_AGENT_MOBILE);
        } else if (force && !mobile) {
            mWebSettings.setUserAgentString(USER_AGENT_DESKTOP);
        } else { 
            mWebSettings.setUserAgentString(null);
        } 
    } 
 
    /** 
     * Used to load a new URL in the {@link FacebookWebView} 
     * 
     * @param url {@link String} 
     */ 
    protected void loadNewPage(String url) {
        if (mWebView != null) {
            mWebView.loadUrl(url);
        } 
    } 
 
    /**