我有一个应用程序,它有两个都扩展的搜索建议提供程序,并且我已经在清单文件中使用以下过滤器和元数据SearchRecentSuggestionsProvider
正确设置了它:Intent
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable_tv" />
可搜索资源包括android:includeInGlobalSearch="true"
,所以应该没问题。
而且我显然也有一个提供者:
<provider
android:name="com.miz.contentprovider.TvShowContentProvider"
android:authorities="com.miz.contentprovider.TvShowContentProvider"
android:exported="true" />
这一切都在使用 Google 搜索应用程序的 Android 4.3 中运行良好,但我刚刚将我的所有设备更新到 Android 4.4,我不再能够在我的应用程序中搜索内容。在操作系统更新之前运行的其他应用程序也是如此,例如 Google Play 音乐。
我在 XDA 开发人员上找到了一个帖子,如果它有帮助的话:http: //forum.xda-developers.com/showthread.php?p=47472102
有谁知道发生了什么或如何解决?
更新:我可以确认它只发生在 Android 4.4 的设备上。我已经使用最新的 Google 搜索更新在 Android 4.3 设备上进行了测试,它按预期工作。看起来这是谷歌更新中的一个错误。