TechForge

31st October 2014

Share this story:

Tags:

Categories::

Google has historically been referred to as “the search giant” which is becoming more and more irrelevant as the firm expands into huge standalone products such as Android. Now the web giant wants to bring their search expertise, and the world’s most popular OS, closer together.

On the Android Developer Blog, Google has announced the ability to allow Android’s on-device search to open and scour your application for data with just six-lines of code in your AndroidManifest.xml file…

The lines you will need to add are:

<activity android:name=”.SearchableActivity”>

<intent-filter>

<action android:name=”com.google.android.gms.actions.SEARCH_ACTION”/>

<category android:name=”android.intent.category.DEFAULT”/>

</intent-filter>

</activity>

Simple, right? And the functionality this enables is quite impressive, a user could say something like “Search TripAdvisor for Pizza Restaurants” and TripAdvisor will be opened and the search field filled with the data which is being requested.

Here it is in action:

Once you make these changes, your app can receive the SEARCH_ACTION intent containing the SearchManager.QUERY with the search expression. After developers integrate the code, any user running Google 3.5 or higher on an Android Jelly Bean+ device will be able to take advantage of the functionality.

Better still, with hotword functionality users don’t even have to close their current application. All they have to do is say “Ok, Google” (unless changed) and make their request. From a development perspective, it’s an easy way to add powerful functionality. From a user perspective, it offers a seamless method of deeper-interaction with their applications.

Will you be allowing users to search your apps? Let us know in the comments.

About the Author

Senior Editor

Ryan Daws is a senior editor at TechForge Media with over a decade of experience in weaving narratives and dissecting complex topics. His articles and interviews with industry leaders have earned him recognition as a key tech influencer from numerous organisations. Under his leadership, publications have been praised by analyst firms for their excellence and performance. Connect with him on X, Mastodon, Bluesky, Threads, and/or LinkedIn.

Related

20th August 2026

19th August 2026

17th August 2026

12th August 2026

Join our Community

Subscribe now to get all our premium content and latest tech news delivered straight to your inbox

Popular

20090 view(s)
10270 view(s)
5817 view(s)
5482 view(s)

Subscribe

All our premium content and latest tech news delivered straight to your inbox

This field is for validation purposes and should be left unchanged.