I need to give a search box in my android app. As the user starts typing in the search text, I need to show him relevant suggestions. (As we see in the google-search widget on the home screen. If we see from the logs, com.android.quicksearchbox/.SearchActivity
is started with android.search.action.GLOBAL_SEARCH
intent and it searches in following: corpora:[web, apps, com.android.contacts/.activities.PeopleActivity])
.
Only thing is I need the suggestions to be displayed from the web & my application DB.
Any idea how to implement this ? Do I need to implement my own SuggestionsProvider
or can I directly use the native implementation? If so, how?