How do I pass extra variables during a search invoked by a SearchView/ Widget?

前端 未结 3 1095
一整个雨季
一整个雨季 2021-02-13 12:55

I am successfully using a search widget in my action bar to perform a search following this guide. The search is fine, but I\'m wondering how to pass additional variables on a s

3条回答
  •  [愿得一人]
    2021-02-13 13:15

    I think you want to just use

    String value = intent.getStringExtra(SearchManager.APP_DATA);

    because the intent holds the bundle you passed to start the search.

提交回复
热议问题