Does anybody know how to search in my app using Google Now?
I tried looking for sources but there's a few of them .. Please help
AndroidManifest.xml
<activity android:name="***.*****.*********.ui.activity.HomeActivity">
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.gms.actions.SEARCH_ACTION"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.VOICE"/>
</intent-filter>
<meta-data
android:name="android.app.default_searchable"
android:value=".HomeActivity" />
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
searchable.xml
<searchable
xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/app_name"
android:includeInGlobalSearch="true"
android:searchSuggestAuthority="@string/app_name"
android:hint="@string/searchable">
</searchable>