Android ACTION_SEARCH isn't working
<p>...</p>

<p>I need to implement search feature to my application via search dialog, but the standard way of doing that isn't working where the same code and activity work for SEARCH_LONG_PRESS but doesn't work for SEARCH. Here's my 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.android.myapp"
      android:versionCode="1"
      android:versionName="1.0"
      android:installLocation="preferExternal"&gt;
    &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
        &lt;activity android:name=".Main"
                  android:label="@string/app_name"&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;meta-data android:name="android.app.default_searchable"
                   android:value=".ObjectSearch" /&gt;
        &lt;/activity&gt;

        &lt;activity android:name=".ObjectSearch"&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;intent-filter&gt;
                &lt;action android:name="android.intent.action.SEARCH_LONG_PRESS" /&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;/manifest&gt; 
</code></pre>
