Code example for WebView

Methods: clearCacheclearFormDataclearHistorygetSettingssetWebViewClient

0
        this.pinText = (EditText) findViewById(R.id.pin_text);
 
        //----------------------- 
        //Web View 
        //----------------------- 
        this.webView.setWebViewClient(new WebViewClient() {
            @Override 
            public boolean shouldOverrideUrlLoading(WebView view, String url)
            { 
                RegisterTwitterAccountActivity.this.webView.loadUrl(url);
                return true; 
            } 
        }); 
        this.webView.clearCache(true);
        this.webView.getSettings().setJavaScriptEnabled(true);
        this.webView.clearHistory();
        this.webView.clearFormData();
 
        //----------------------------- 
        // Allow Check Box 
        //----------------------------- 
        this.allowBox.setOnCheckedChangeListener(new OnCheckedChangeListener() {