开发者

startActivityResult Problem on Quick Search Box in Android?

How to do the startActivityResult() for the Quick Search Box? that is if i click a button in my activity. it should wake up the QSB and search. i click the suggestion button. it will return the string which is shown as a suggestion. how to do it? w开发者_Python百科hich intent action i have to use and how ? Any Idea?

EDIT: i am using android:searchSuggestIntentAction="android.intent.action.VIEW" attribute. its reloads the current Activity.Why? which intent action i have to use and how ?


onSearchRequested() will pop up the search box, but you need to set up some infrastructure first.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜