I search, but I don't receive a Intent.ACTION_SEARCH event
I'm trying to implement a search fonctionality in my android app. With my app :
- I click on the standard search button.
- I see the standard search dialog with my icon app.
- I see my list of suggests items app when I type something in the search field.
- When I choose a suggest, something call the onNewIntent of my standard activity, but the intent is *Intent.ACTION_VIEW*, not *Intent.开发者_Go百科ACTION_SEARCH*, as I hope ??
I'm losted If it's ok to receive ACTION_VIEW, how I retreive the item searched ? If it's not ok, why ?
If it is the Intent.ACTION_VIEW, you can retrieve the data by using
intent.getData()
which will return a URI that you can parse.
精彩评论