I have a problem when I try to configure automatic search using searchView on an ActionBar.
I have a contentProvider that calls webService on its own to get suggestions. It returns the cursor, and the sentence is correctly presented in the user interface.
The problem is that nothing happens when I select one of these suggestions.
I'm not sure what to store in SUGGEST_COLUMN_INTENT_ACTION.
When reading the documentation, I realized that the onCreate method of my activity must be called again and that I can get SUGGEST_COLUMN_INTENT_ACTION to find out the context and get SUGGEST_COLUMN_INTENT_DATA with the intention .getData ().
OnCreate is never called, no exception is thrown, nothing happens ...
What did I miss? Why does nothing happen when I choose an offer?
My searchable.xml:
<?xml version="1.0" encoding="utf-8"?> <searchable xmlns:android="http://schemas.android.com/apk/res/android" android:label="@string/app_name" android:hint="@string/search_hint" android:voiceSearchMode="showVoiceSearchButton|launchRecognizer" android:searchSuggestAuthority="MyPackage.search_suggestion_provider" android:searchSuggestIntentAction="android.intent.action.SEARCH" > </searchable>
source share