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.
精彩评论