我有一个应用程序,其中有两个搜索建议提供程序,它们都扩展了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" />
在Android 4.3中使用Google搜索应用程序一切正常,但我刚刚将所有设备升级到Android 4.4,不再能够搜索应用程序内的内容。其他应用程序也是如此,例如Google Play音乐。
我在XDA开发者论坛上找到了一个提到这个问题的帖子,如果有帮助的话: http://forum.xda-developers.com/showthread.php?p=47472102
有人知道发生了什么或如何修复吗?
更新:我可以确认它只会发生在Android 4.4设备上。我使用最新的Google搜索更新在Android 4.3设备上进行了测试,一切正常。看起来这是Google更新中的一个错误。