Search code examples
androidautocompletetextview

show data in listview from webservice according to keypress in android


I am developing an android app for a Korean client. I have to search a data according to key press, like, if I press A then all the data who started from A show in listview where data come from a web service in listview. Is it possible?

If yes, then how to do it. If possible give me some code or link which I can use?

Thanks.


Solution

  • At the area where getData() is called in @Syam's code, fetch the new data according to the text entered in the edit text, put it in the array that has the source of ListView, don't forget to call setDataSetChanged() on the adapter in the end.