search-dialog

Is it possible to pass search context data using the Search Widget (SearchView) only?

我的未来我决定 提交于 2019-12-05 05:56:20
问题 According to the official documentation, there are two ways of providing a search interface: using either the search dialog or a SearchView widget. I'd like to pay attention to passing search context data using these two ways. So, the documentation says: ..you can provide additional data in the intent that the system sends to your searchable activity. You can pass the additional data in the APP_DATA Bundle, which is included in the ACTION_SEARCH intent. To pass this kind of data to your

Is it possible to pass search context data using the Search Widget (SearchView) only?

我只是一个虾纸丫 提交于 2019-12-03 21:16:16
According to the official documentation , there are two ways of providing a search interface: using either the search dialog or a SearchView widget. I'd like to pay attention to passing search context data using these two ways. So, the documentation says: ..you can provide additional data in the intent that the system sends to your searchable activity. You can pass the additional data in the APP_DATA Bundle, which is included in the ACTION_SEARCH intent. To pass this kind of data to your searchable activity, override the onSearchRequested() method for the activity from which the user can