AutoCompleteTextView onItemSelectedListener does not work

Dude, you will laugh at your mistake. Its working for me. You have added OnItemSelectedListener and not OnItemClickListener.

Your method will only work if you select your items or browse through the view using a trackball or up/down arrows. Use one more value in your String starting with “k” say Karen1. Type “k” and select between Karen and Karen1.You will see that it works. If you want click, then add OnItemClickListener and override

public void onItemClick(AdapterView<?> arg0, View arg1,
                        int arg2, long arg3)

Leave a Comment