开发者

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 :

  1. I click on the standard search button.
  2. I see the standard search dialog with my icon app.
  3. I see my list of suggests items app when I type something in the search field.
  4. 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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜