A searchable activity is the Activity in your application that performs searches based on a query string and presents the search results.
Because you may include the search dialog or widget in any other activity in your application, the system must know which activity is your searchable activity, so it can properly deliver the search query. So, you must first declare your searchable activity in the Android manifest file.
Declaring a searchable activity
If you don’t have one already, create an Activity that will perform searches and present results
In some cases, you can make necessary refinements to the search query inside the searchable activity, for every search made. However, if you want to refine your search criteria based on the activity from which the user is performing a search, 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_DATABundle, which is included in the ACTION_SEARCH intent.
Once the user submits a query, it’s delivered to your searchable activity along with the data you’ve added. You can extract the extra data from the APP_DATABundle to refine the search. For example:
Posted from Diigo. The rest of my favorite links are here.