Reputation: 1819
I have been trying to enable my app to launch from long pressing the search button on the phone.
How can this be done?
Thanks!
Upvotes: 0
Views: 861
Reputation: 6376
Try setting this intent-filter on your Activity that you would like to show when the user long clicks the search button:
<activity...>
<intent-filter>
<action android:name="android.intent.action.SEARCH_LONG_PRESS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Upvotes: 2