Android long press search button not working
<p>so my app listens for a long press on the search button and is supposed to be called in lieu of the normal voice search. I have the following:</p>

<pre><code>&lt;activity android:name=".MyActivity"
              android:label="@string/app_name" android:screenOrientation="portrait"
              android:theme="@android:style/Theme.NoTitleBar"&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.VOICE_COMMAND"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
    &lt;/activity&gt;
</code></pre>

<p>But the activity is not listed as an option when I long press the search button. Also, there are no defaults set for this action, so a list of possible activities to launch should populate, and they do; however, mine is not listed as one. Thoughts?</p>

<p>I have also tried to put the "android.intent.action.VOICE_COMMAND" in a receiver and in its own activity declaration in the manifest, but these do not work either.</p>
