【发布时间】:2010-10-31 11:02:24
【问题描述】:
我的清单文件中有以下内容:
<service android:name=".Rotate"
android:enabled="true"
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>
</service>
但是,按住搜索键不再激活SEARCH_LONG_PRESS。在我将 <activity> 替换为 <service> 之前,它会在长按搜索键时显示两个选项,一个是我的应用,另一个是 Google 语音搜索……现在它只是 Google 语音搜索。
【问题讨论】:
标签: android service intentfilter