Can't disable predictive text

A comment from this SO question suggests that the xml attribute doesn't work for some models, but that the java-method does work in these cases. So try this:

edittext.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);

edit:

As suggested in the comment below, here's an xml alternative that has worked:

android:inputType="textNoSuggestions|textVisiblePassword"

android:inputType="textNoSuggestions|textVisiblePassword"

This solution works but you have to be careful with it. You cannot switch keyboard language on HTC devices (probably the reason is in Sense keyboard) if the flag textVisiblePassword is set.

So I had to set InputType from the code and to write something like this:

    public static int getInputTypeForNoSuggestsInput() {
    if (android.os.Build.MANUFACTURER.equalsIgnoreCase("Samsung")) {
        return InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS
                | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD;
    } else {
        return InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
    }