Months ago, we posted a rumor about "modular actions" set to come to Google's Search app (now just called Google) along with "Ok Google Everywhere" functionality that would allow users to activate search from anywhere on their device. The latter has already been implemented, but Google is still inching toward the former. With the technically unreleased Google app, the search interface can overlay apps from which it is called, but Google today announced another step forward - the ability to let apps hook into search by accepting voice queries from the user.

The solution is a mere six lines which, when added to the AndroidManifest.xml file, will allow a user to say something like "Search for pizza on Eat24" to open the corresponding app (in this case Eat24) to pizza search results. Here's the entirety of the code:

<activity android:name=".SearchableActivity">
        <action android:name=""/>
        <category android:name="android.intent.category.DEFAULT"/>

Pretty simple, right? Here's a quick demo of the functionality in action.

This isn't quite what we described in our original post, but we feel confident that the functionality is in the pipeline, and this is definitely a step in the right direction. Once developers integrate this code, any user running Google 3.5 or higher on an Android Jelly Bean+ device will be able to take advantage of the functionality.

Source: Android Developers

Thanks, Derek and Brandon!