I have an autocomplete SearchView
that is managed throught Search API and shows a list of locations as suggestions.
The data is provided by a ContentProvider
in a remote GAE application.
The problem that I've is that the SearchView
makes a query for every letter that the user press.
For example for New York it makes 8 queries and I want to limit that because a lot of the queries are wasted because network latency is bigger than user typing latency and for example 'New' is asked before receiving 'Ne'.
I will like a more intelligent behavior like other search components that have some logic to don't do so many queries while the user is actively typing.
PD: A solution using Searchable API or the provider will be better because I use SearchView
in newer Android versions and search dialog in older ones.