Monday, 15 June 2015

Instantly show autocompletion results using Android's search dialog -



Instantly show autocompletion results using Android's search dialog -

i redesigning search interface android app. i've reddish google's api guide (http://developer.android.com/guide/topics/search/search-dialog.html).

the current version of app uses classic scheme search dialog. lacks autocompletion want provide in new version.

my requirements in terms of auto-completion: if query string less 3 characters, app should auto-suggest search results based on set of stored favorites stored locally. if query consists of @ to the lowest degree 3 characters, search shall conducted remotely via search api.

since historically, app's minimum api level 7, cannot utilize honeycomb's searchview (api 11+) or actionbarsherlock searchview (api 8+). decided stick search dialog provided searchmanager.

i've sucessfully implemented requirements stated above.

though, 1 thing reduces usability.

when user starts search, search dialog gains focus. desired behaviour instantly, favorites suggested. though, true on htc legend running froyo (2.2). on galaxy nexus, app of times not instantly show suggestions. callbacks searchprovider not until user has entered @ to the lowest degree 1 character.

my question: there way instantly show suggestions/get callback searchprovider across android versions starting api 7+?

i've tried different calls searchmanager (startsearch()) no luck.

android search

No comments:

Post a Comment