Overriding Search Long Press
On many Android phones, when a user long presses the Search button, it launches the Google Voice Search intent. How can override this feature across the entire system, not just ove
Solution 1:
Try using "android.intent.action.SEARCH_LONG_PRESS" as your action with the category as "android.intent.category.DEFAULT" under your intent-filters in your AndroidManifest.xml
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".YourActivityName" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.SEARCH_LONG_PRESS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
Post a Comment for "Overriding Search Long Press"