androidtexteditsamsung-galaxy

Disable text prediction on samsung Keybord


i have a textedit field in my android app, this text field is intended for a serial key so text should not be autocompleted.

i managed to solve it on the stock android keyboard but the samsung keyboard is still showing suggestions and autocompleting no matter what flags i set, these are my current flags:

 android:inputType="textFilter|textNoSuggestions|textCapCharacters|textVisiblePassword"

i have also tried with

android:privateImeOptions="nm"

so, any other idea on how to programmatically disable this?


Solution

  • it seems to me that some flags don't play nicely together in the samsung keyboard if i drop the textFilter flag just to leave

    android:inputType="textNoSuggestions|textCapCharacters|textVisiblePassword"
    

    it works as intended but if textFilter is added to inputType it will ignore the rest