I think you also need a flag marked (at the application level) as the one that offers the search, via:
<meta-data android:name="android.app.default_searchable" android:value=".LoremSearch" />
(substituting the correct value for android:value )
eg:.
<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true" android:allowBackup="true" > <meta-data android:name="android.app.default_searchable" android:value=".MySearchActivity" /> <activity android:name=".MySearchActivity"> <intent-filter> <action android:name="android.intent.action.SEARCH" /> </intent-filter> <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/> </activity>
The method that you specified for only one action includes only a search within this action. Only adding a metadata tag at the application level allows you to search for all actions.
See here for a complete search project.
source share