I am developing an android application. I have an autocompleteTextView in my layout. I want to populate this textView with the suggestions from my server. There are around 400 keywords on the server and they will increase in near future so i can not parse all the tags at once and then check for suggestions. The autocompleteTextView should work more like as the google search, so that i parse only when the user typed in something and that parsing happens on UI thread.
But i am here not able to trigger that parser since i am not able to get that callback method or may be the event which senses that user has typed something or may be edited some text.
setOnEditorActionListener works only when the user presses the enter button on the soft keyboard.
Thanks in advance
You can use the Filter interface to implement this as well. Turns out Filter.performFiltering() is called off the UI thread just for this type of purpose. Here is some code I use to do this:
Then using the Filter: