In an android app, when we attach an AutoCompleteTextView to display suggestions while a user is typing, we can fetch the list of suggestions in two ways. One way is to store the data in a local database and fetch it using a search query on the search keyword entered by the user. Another way is to fetch list of suggestions in real time, by generating a search url with the search keyword and hitting the web service. In the second approach, we fetch data directly from server, so whenever the list of suggestions changes, it gets reflected immediately in the app. Whereas in the first one, we...
Read More