我正在使用ContentProvider
来进行搜索建议,但是在处理建议点击时遇到了问题:我解释搜索效果很好,但是当我点击建议时,我进入了搜索活动,但事实并非如此,所以我该怎么办?处理点击建议?
Your XML\\searchable.xml (or equivalent) should include
android:searchSuggestIntentAction = android.intent.action.VIEW
otherwise your intent won't be called.
http://developer.android.com/guide/topics/search/searchable-config.html defines this field as:
The default intent action to be used when a user clicks on a custom search suggestion (such as "android.intent.action.VIEW"). If this is not overridden by the selected suggestion (via the SUGGEST_COLUMN_INTENT_ACTION column), this value is placed in the action field of the Intent when the user clicks a suggestion.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.