I use the following code to set text to an AutoCompleteTextView field. But I noticed that when I set certain text (not all text, but some) to it, it will automatically pop u
I too faced a scenario and I resolved in this way.
dismissDropDown() for that autocompleteTextView.Please find the below snippet
if(null != testText && testText.length() != 0) {
mAutoCompleteSearch.setText(incomingActivity.toString());
mAutoCompleteSearch.dismissDropDown(); //Dismiss the drop down
} else {
mAutoCompleteSearchDocketActivity.setText("");
// Here it(drop down) will be shown automatically
}
Hope, this would help for someone, Cheers !