WebView clearFormData - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for WebView clearFormData method.

This code example shows how to use the following methods:clearDisappearingChildren, clearFocus, clearCache, clearFormData, clearHistory
This code example shows how to use the following methods:addJavascriptInterface, clearCache, clearFormData, clearHistory, getSettings
	 
    /** Called when the activity is first created. */ 
    @Override 
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
		webView = new WebView(this);
		setContentView(webView);
 
		webView.getSettings().setJavaScriptEnabled(true);
		webView.getSettings().setDomStorageEnabled(true);
		webView.getSettings().setGeolocationEnabled(true);
		webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
		webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
		webView.clearHistory();
		webView.clearCache(true);
		webView.clearFormData();
 
		final Context myApp = this;
 
 

6
CodeRank
This code example shows how to use the following methods:requestFocus, setFocusable, setFocusableInTouchMode, clearCache, clearFormData
   
  private WebDriverWebView() {} 
 
  private static void initWebViewSettings(WebView view) {
    // Clearing the view 
    view.clearCache(true);
    view.clearFormData();
    view.clearHistory();
    view.clearView();
 
    view.requestFocus(View.FOCUS_DOWN);
    view.setFocusable(true);
    view.setFocusableInTouchMode(true);
 
    // Webview settings 
    WebSettings settings = view.getSettings();
    settings.setJavaScriptCanOpenWindowsAutomatically(true);
    settings.setSupportMultipleWindows(true);
    settings.setBuiltInZoomControls(true);
    settings.setJavaScriptEnabled(true);

5
CodeRank
This code example shows how to use the following methods:setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, clearCache, clearFormData, clearHistory
        mContent.addView(mTitle);
    } 
 
    @SuppressLint("SetJavaScriptEnabled") 
	private void setUpWebView() { 
        mWebView = new WebView(getActivity());
         
        mWebView.clearHistory();
		mWebView.clearFormData();
		mWebView.clearCache(true);
		 
        mWebView.setVerticalScrollBarEnabled(false);
        mWebView.setHorizontalScrollBarEnabled(false);
        mWebView.setWebViewClient(new StackWebViewClient());
         
        WebSettings settings = mWebView.getSettings();
		settings.setSavePassword			(false);
		settings.setSaveFormData			(false);
		settings.setJavaScriptEnabled		(true);
		settings.setSupportZoom				(false);

5
CodeRank
This code example shows how to use the following methods:clearFormData
    /* package */ void clearFormData(Context context) {
        WebViewDatabase.getInstance(context).clearFormData();
        if (mTabControl != null) {
            WebView currentTopView = mTabControl.getCurrentTopWebView();
            if (currentTopView != null) {
                currentTopView.clearFormData();
            } 
        } 
    } 
 
    /*package*/ void clearPasswords(Context context) {
        WebViewDatabase db = WebViewDatabase.getInstance(context);
        db.clearUsernamePassword();
        db.clearHttpAuthUsernamePassword();
    } 
 
    private void updateTabControlSettings() { 
        // Enable/disable the error console. 
        mTabControl.getBrowserActivity().setShouldShowErrorConsole(
            showDebugSettings && showConsole);
4
CodeRank
This code example shows how to use the following methods:clearFormData
    /* package */ void clearFormData(Context context) {
        WebViewDatabase.getInstance(context).clearFormData();
        if (mTabControl != null) {
            WebView currentTopView = mTabControl.getCurrentTopWebView();
            if (currentTopView != null) {
                currentTopView.clearFormData();
            } 
        } 
    } 
 
    /*package*/ void clearPasswords(Context context) {
        WebViewDatabase db = WebViewDatabase.getInstance(context);
        db.clearUsernamePassword();
        db.clearHttpAuthUsernamePassword();
    } 
 
    private void maybeDisableWebsiteSettings(Context context) {
        PreferenceActivity activity = (PreferenceActivity) context;
        final PreferenceScreen screen = (PreferenceScreen)
            activity.findPreference(ErowserSettings.PREF_WEBSITE_SETTINGS);
3
CodeRank

Related WebView clearFormData Questions & Answers:

clearFormData Method Overview
Removes the autocomplete popup from the currently focused form field, if present.
See Code Examples for other Android WebView Methods: