我有一个应用程序,它有两个扩展的搜索建议提供程序,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" />
Run Code Online (Sandbox Code Playgroud)
可靠的资源包括android:includeInGlobalSearch="true",所以应该没问题.
我显然也有一个提供者:
<provider
android:name="com.miz.contentprovider.TvShowContentProvider"
android:authorities="com.miz.contentprovider.TvShowContentProvider"
android:exported="true" />
Run Code Online (Sandbox Code Playgroud)
这一切在Android 4.3中使用Google搜索应用程序都运行良好,但我刚刚将所有设备更新到Android 4.4,我无法再在我的应用程序中搜索内容.在操作系统更新之前工作的其他应用程序也是如此,即Google Play音乐.
我在XDA开发人员身上发现了一个线程,如果有帮助的话,也会提到这个:http://forum.xda-developers.com/showthread.php?p = 474272102
有谁知道发生了什么或如何解决?
更新:我可以确认它只发生在安装了Android 4.4的设备上.我使用最新的Google搜索更新在Android 4.3设备上进行了测试,并且按预期工作.看起来这是Google更新中的一个错误.