AutoCompleteView: Synchronous Server Call With Filter

In order to implement a synchronous server calling within the filter, an autocomplete text view is being used. The web service is hit with each character typed in an Autocomplete list. To have data dynamically put into the list, we can make a customized adapter. I have implemented this by making an adapter to implement a filterable interface.
For getting data from the server, two approaches can be used:

Link: https://dzone.com/articles/autocompleteview-synchronous-server-call-with-filt?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev