I have few activities in my app which are meant to perform some specific tasks.
I would like to have a search features on almost all of these activities.
My design is as below:
Activity1: With SearchView widget in Actionbar
Activity2: With SearchView widget in Actionbar
SearchActivity: Which perform the search and display results in ListView.
I have done necessary configuration in my manifest file for the SearchActivity.
When I touch on the search icon(magnifying glass), the SearchView gets expanded to allow user to enter the query,then user trigger the search and search intent got delivered to the SearchActivity.
Since the user originally entered the search query on Activity, I don't see the query and SearchView in my SearchActivity (this is basically required to allow user to perform further searches).
I understand that to do so I will also need a SearchView in my SearchActivity too, but How to pre-populate it with the query entered in previous activity and show in expanded state ?