SearchIntents | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Constants | Inherited Methods | [Expand All]
public class

# SearchIntents

extends Object

java.lang.Object
↳ | com.google.android.gms.actions.SearchIntents

## Class Overview

Constants for intents to perform in-app search from a Search Action.

## Summary

Constants
String | ACTION_SEARCH | Intent action for performing an in-app search.
String | EXTRA_QUERY | Intent extra specifying the text query to use as a string for `ACTION_SEARCH`.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Constants

#### public static final String ACTION_SEARCH

Intent action for performing an in-app search. The intent should include an optional extra to specify the text to search for `EXTRA_QUERY`. If no extras are provided, the application should just show an Activity with the search UI activated.

Constant Value: "com.google.android.gms.actions.SEARCH_ACTION"

#### public static final String EXTRA_QUERY

Intent extra specifying the text query to use as a string for `ACTION_SEARCH`.

Constant Value: "query"