Android local search
<p>I'm trying to implement a local search in my activity. I've added an appropriate intent filter and metadata tag to manifest file but if I click Search button it invokes standard android search box. What's my problem?</p>

<p>Manifest file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nixsolutions.invertigation.android.dataprovider"
android:versionCode="1"
android:versionName="1.0"&gt;
&lt;application
    android:icon="@drawable/icon"
    android:label="@string/app_name"
    android:debuggable="true"&gt;


    &lt;provider
        android:name="NoteProvider"
            android:authorities="com.nixsolutions.investigation.android.NoteProvider"&gt;
    &lt;/provider&gt;
    &lt;activity
        android:name="NotesList"&gt;
        &lt;intent-filter&gt;
            &lt;action
                android:name="android.intent.action.MAIN" /&gt;
            &lt;category
                android:name="android.intent.category.LAUNCHER" /&gt;

        &lt;/intent-filter&gt;
        &lt;intent-filter&gt;
            &lt;action
                android:name="android.intent.action.SEARCH" /&gt;
            &lt;category
                android:name="android.intent.category.DEFAULT" /&gt;
        &lt;/intent-filter&gt;
        &lt;meta-data
            android:name="android.app.searchable"
            android:resource="@xml/searchable" /&gt;
    &lt;/activity&gt;
&lt;/application&gt;
&lt;uses-sdk
    android:minSdkVersion="7" /&gt;

&lt;/manifest&gt; 
</code></pre>

<p>searchable.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;searchable xmlns:android="http://schemas.android.com/apk/res/android" 
android:label="Custom search"
android:hint="Custom hint"
android:searchMode="showSearchLabelAsBadge"
/&gt;
</code></pre>
