How to disable the SwiftKey (third-party keyboard) behavior in EditText?

2.5k Views Asked by At

I'm using the standard EditText control in my Android app. The input for this EditText should be inserted only from the built-in Keypad of the app.

When SwiftKey (third-party keyboard app) is installed on the device, it causing to strange behavior like a jumpy cursor, and underline below some text.

My question is, how can I avoid of any third-party keyboard effects in the EditText control.

2

There are 2 best solutions below

1
Ben On BEST ANSWER

Using TYPE_TEXT_FLAG_NO_SUGGESTIONS flag on EditText.InputType solved the issue.

6
CommonsWare On

My question is, how can I avoid of any third-party keyboard effects in the EditText control.

You can't. The choice of the input method editor ("keyboard app") is up to the user, not you. AFAIK, there are some devices that ship with SwiftKey as the default.