I need the Spell Checker to be turned off using Android code. How do I do that? If it cannot be turned off by code, is there a way to display the spell checker options to the user so the user can turn it off manually? thanks
Add this line into your EditText:
android:inputType="textFilter"
And if your EditText accepts multiple lines, then do this:
android:inputType="textFilter|textMultiLine"
Update:
That is not possible to switch it off/on till now via code. But you can do one thing, you can ask user to disable it and if user choose yes then open Language Settings Screen by following code:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.android.settings", "com.android.settings.LanguageSettings");
startActivity(intent);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With