Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I turn off Spell checker using code in Android?

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

like image 338
Hanna F Avatar asked Dec 02 '25 07:12

Hanna F


1 Answers

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);
like image 125
Baby Be'el Avatar answered Dec 04 '25 23:12

Baby Be'el



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!