1

I am thinking of supporting Quick Search Box in my Android app. I would take what the user has typed and run a query on a remote server via web services. Is this pattern efficient enough or is it expected that any data I am querying should be displayed from locally accessible data?

Keith Adler
  • 20,880
  • 28
  • 119
  • 189

1 Answers1

1

Well, provided the server you are using is fast enough, no reason not to do that. The quick search box explicitly supports merging of results from local data and the web (see line #1 of http://developer.android.com/resources/articles/qsb.html).

As long as the fail is graceful (for situations where there is no network connectivity) you should be fine.

EDIT: odd, they got rid of it in the recent redesign. There is a mirror at http://jayxie.com/mirrors/android-sdk/resources/articles/qsb.html, and you can read up on the search suggestions at http://developer.android.com/guide/topics/search/adding-custom-suggestions.html.

Femi
  • 64,273
  • 8
  • 118
  • 148
  • Ah, yes: the android website redesign got rid of it. Look at http://developer.android.com/guide/topics/search/adding-custom-suggestions.html and http://jayxie.com/mirrors/android-sdk/resources/articles/qsb.html . – Femi Oct 23 '12 at 22:36
  • thank you , but my problem that the search suggest should have the ability to get the suggestion from server and this cant be done since the system will call the provider i specified in the configuration xml , so making a network operation in the UI thread !!! any way to do this ???bring the suggestion from server . – user4o01 Oct 23 '12 at 23:18