Skip to content Skip to sidebar Skip to footer

Android Webview Disable Keyboard Predictions

I've been scouring the web for hours now looking for answer to these two questions, to no avail. How do I disable all keyboard auto-complete suggestions within an app/activity/We

Solution 1:

For your first requirement

android:windowSoftInputMode="stateVisible"// Add this Manifest section 

For your second requirement

webviewOBJ.clearFormData();
webviewOBJ.getSettings().setSaveFormData(false);

setSaveFormData

Sets whether the WebView should save form data. In Android O, the platform has implemented a fully functional Autofill feature to store form data. Therefore, the Webview form data save feature is disabled.

You should read Android Webview private browsing

Solution 2:

Add this line in manifests file inside your web view activity

android:windowSoftInputMode="stateVisible"

Post a Comment for "Android Webview Disable Keyboard Predictions"