I am trying to make my application implement built-in quick search, similar to how it is done in the app / search / invoke search application in ApiDemos. I tried everything from trying to follow other examples, copying the code exactly the same as in ApiDemos.
Everything I found for the first is related to older versions of the SDK and just does not work. As for the things that I can run and see in ApiDemos, I tried to copy the following
com.example.android.apis.app.SearchInvoke.java com.example.android.apis.app.SearchQueryResults.java com.example.android.apis.app.SearchSuggestionSampleProvider.java res/layout/search_invoke.xml res/layout/search_query_results.xml res/values/arrays.xml res/values/strings.xml res/xml/searchable.xml ... and everything under "Search Samples" in AndroidManifest.xml
This copy gives me a view that looks exactly like the one that I encounter when starting ApiDemos, but when I click on the search button, in the quick search window, Android always just opens a browser window with Google search results for this query. I just can't find the critical component in ApiDemos that tells android that I want to use my own code to process the search request.
I would really appreciate help in this matter. Both documentation and other online resources seem very inadequate when it comes to this.
Thanks.
android quick-search
David Hedlund
source share