I have an AutoCompleteTextView and set onItemSelectedListener to it, which does not work.
Have you any idea what is the problem? Here is my Activity, I can also pr
Looks like, of-late, the real problem may not be in the code of the question asked, but in the source code of the AutoCompleteTextView class itself.
Although the AutoCompleteTextView class sets it's OnItemSelectedListener through the setOnItemSelectedListener method, but nowhere in the class any listener method is called. Hence the listener remains unused. (reason best known to developers!)
Source code here: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/AutoCompleteTextView.java
As such, the alternative is to use the OnItemClickListener.