SearchRecentSuggestions
全部标签 我正在使用搜索建议框架,情况就是这样。我得到一些查询字符串并从内容解析器进行查询,但问题是我无法限制结果。找到了几个解决方案,但它们对我不起作用。我的内容提供者正在扩展SearchRecentSuggestionsProvider并在list中声明,这里是查询uriUriURI=Uri.parse("content://"+AUTHORITY+"/search_suggest_query");解决方案1:向uri添加查询参数SearchSuggestionProvider.URI.buildUpon().appendQueryParameter(SearchManager.SUGGES
我有一个可用的搜索小部件,并想添加搜索历史建议。我遵循了Android教程(http://developer.android.com/guide/topics/search/adding-recent-query-suggestions.html),虽然搜索仍然有效,但没有显示任何建议。这是我的代码:内容提供者packagecom.mypackage;importandroid.content.SearchRecentSuggestionsProvider;publicclassSearchHistoryProviderextendsSearchRecentSuggestionsPro
我有一个可用的搜索小部件,并想添加搜索历史建议。我遵循了Android教程(http://developer.android.com/guide/topics/search/adding-recent-query-suggestions.html),虽然搜索仍然有效,但没有显示任何建议。这是我的代码:内容提供者packagecom.mypackage;importandroid.content.SearchRecentSuggestionsProvider;publicclassSearchHistoryProviderextendsSearchRecentSuggestionsPro