Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea2e042f authored by Ricardo Cervera's avatar Ricardo Cervera Committed by Android Git Automerger
Browse files

am 91934b63: am 989f4bfd: am f4e32145: am 61fcad92: docs: Add SearchXonY to...

am 91934b63: am 989f4bfd: am f4e32145: am 61fcad92: docs: Add SearchXonY to Common Intents automerge: be07f2a8 automerge: cf6a28f8

* commit '91934b63':
  docs: Add SearchXonY to Common Intents
parents c15fe797 91934b63
Loading
Loading
Loading
Loading
+221 −98
Original line number Original line Diff line number Diff line
@@ -80,6 +80,13 @@ page.tags="IntentFilter"
      <li><a href="#DialPhone">Initiate a phone call</a></li>
      <li><a href="#DialPhone">Initiate a phone call</a></li>
    </ol>
    </ol>
  </li>
  </li>
  </li>
  <li><a href="#Search">Search</a>
    <ol>
      <li><a href="#SearchOnApp">Search in a specific app</a></li>
      <li><a href="#SearchWeb">Perform a web search</a></li>
    </ol>
  </li>
  <li><a href="#Settings">Settings</a>
  <li><a href="#Settings">Settings</a>
    <ol>
    <ol>
      <li><a href="#OpenSettings">Open a specific section of Settings</a></li>
      <li><a href="#OpenSettings">Open a specific section of Settings</a></li>
@@ -93,7 +100,6 @@ page.tags="IntentFilter"
  <li><a href="#Browser">Web Browser</a>
  <li><a href="#Browser">Web Browser</a>
    <ol>
    <ol>
      <li><a href="#ViewUrl">Load a web URL</a></li>
      <li><a href="#ViewUrl">Load a web URL</a></li>
      <li><a href="#SearchWeb">Perform a web search</a></li>
    </ol>
    </ol>
  </li>
  </li>
  <li><a href="#AdbIntents">Verify Intents with the Android Debug Bridge</a></li>
  <li><a href="#AdbIntents">Verify Intents with the Android Debug Bridge</a></li>
@@ -205,7 +211,8 @@ on this page in response to voice commands. For more information, see
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30"
           height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -302,7 +309,8 @@ android.provider.AlarmClock#ACTION_SET_ALARM} intent, your app must have the
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -605,7 +613,8 @@ in an extra named <code>"data"</code>.</p>
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -660,7 +669,8 @@ public void capturePhoto() {
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -1351,7 +1361,8 @@ Framework</a> guide.</p>
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -1362,14 +1373,21 @@ Framework</a> guide.</p>
  </ul>
  </ul>
</div>
</div>


<p>To track a bike ride, use the <code>"vnd.google.fitness.TRACK"</code> action with the
<p>To track a bike ride, use the
<code>"vnd.google.fitness.activity/biking"</code> MIME type and set the <code>"actionStatus"</code>
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_TRACK">
extra to <code>"ActiveActionStatus"</code> when starting and to <code>"CompletedActionStatus"</code>
<code>ACTION_TRACK</code></a> action with the <code>"vnd.google.fitness.activity/biking"</code>
when stopping.</p>
MIME type and set the
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#EXTRA_STATUS">
<code>EXTRA_STATUS</code></a> extra to
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_ACTIVE">
<code>STATUS_ACTIVE</code></a> when starting and to
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_COMPLETED">
<code>STATUS_COMPLETED</code></a> when stopping.</p>


<dl>
<dl>
  <dt><b>Action</b></dt>
  <dt><b>Action</b></dt>
  <dd><code>"vnd.google.fitness.TRACK"</code><dd>
  <dd><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_TRACK">
      <code>ACTION_TRACK</code></a><dd>


  <dt><b>Data URI</b></dt>
  <dt><b>Data URI</b></dt>
  <dd>None</dd>
  <dd>None</dd>
@@ -1380,9 +1398,12 @@ when stopping.</p>
  <dt><b>Extras</b></dt>
  <dt><b>Extras</b></dt>
  <dd>
  <dd>
    <dl>
    <dl>
      <dt><code>"actionStatus"</code></dt>
      <dt><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#EXTRA_STATUS">
      <dd>A string with the value <code>"ActiveActionStatus"</code> when starting and
          <code>EXTRA_STATUS</code></a></dt>
      <code>"CompletedActionStatus"</code> when stopping.</dd>
      <dd>A string with the value <a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_ACTIVE">
          <code>STATUS_ACTIVE</code></a> when starting and
      <a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_COMPLETED">
          <code>STATUS_COMPLETED</code></a> when stopping.</dd>
    </dl>
    </dl>
  </dd>
  </dd>
</dl>
</dl>
@@ -1391,9 +1412,9 @@ when stopping.</p>
<p><b>Example intent:</b></p>
<p><b>Example intent:</b></p>
<pre>
<pre>
public void startBikeRide() {
public void startBikeRide() {
    Intent intent = new Intent("vnd.google.fitness.TRACK")
    Intent intent = new Intent(FitnessIntents.ACTION_TRACK)
            .setType("vnd.google.fitness.activity/biking")
            .setType("vnd.google.fitness.activity/biking")
            .putExtra("actionStatus", "ActiveActionStatus");
            .putExtra(FitnessIntents.EXTRA_STATUS, FitnessIntents.STATUS_ACTIVE);
    if (intent.resolveActivity(getPackageManager()) != null) {
    if (intent.resolveActivity(getPackageManager()) != null) {
        startActivity(intent);
        startActivity(intent);
    }
    }
@@ -1422,7 +1443,8 @@ public void startBikeRide() {
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -1433,14 +1455,21 @@ public void startBikeRide() {
  </ul>
  </ul>
</div>
</div>


<p>To track a run, use the <code>"vnd.google.fitness.TRACK"</code> action with the
<p>To track a run, use the
<code>"vnd.google.fitness.activity/running"</code> MIME type and set the <code>"actionStatus"</code>
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_TRACK">
extra to <code>"ActiveActionStatus"</code> when starting and to <code>"CompletedActionStatus"</code>
<code>ACTION_TRACK</code></a> action with the <code>"vnd.google.fitness.activity/running"</code>
when stopping.</p>
MIME type and set the
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#EXTRA_STATUS">
<code>EXTRA_STATUS</code></a> extra to
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_ACTIVE">
<code>STATUS_ACTIVE</code></a> when starting and to
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_COMPLETED">
<code>STATUS_COMPLETED</code></a> when stopping.</p>


<dl>
<dl>
  <dt><b>Action</b></dt>
  <dt><b>Action</b></dt>
  <dd><code>"vnd.google.fitness.TRACK"</code><dd>
  <dd><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_TRACK">
      <code>ACTION_TRACK</code></a><dd>


  <dt><b>Data URI</b></dt>
  <dt><b>Data URI</b></dt>
  <dd>None</dd>
  <dd>None</dd>
@@ -1451,9 +1480,12 @@ when stopping.</p>
  <dt><b>Extras</b></dt>
  <dt><b>Extras</b></dt>
  <dd>
  <dd>
    <dl>
    <dl>
      <dt><code>"actionStatus"</code></dt>
      <dt><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#EXTRA_STATUS">
      <dd>A string with the value <code>"ActiveActionStatus"</code> when starting and
          <code>EXTRA_STATUS</code></a></dt>
      <code>"CompletedActionStatus"</code> when stopping.</dd>
      <dd>A string with the value <a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_ACTIVE">
          <code>STATUS_ACTIVE</code></a> when starting and
      <a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_COMPLETED">
          <code>STATUS_COMPLETED</code></a> when stopping.</dd>
    </dl>
    </dl>
  </dd>
  </dd>
</dl>
</dl>
@@ -1462,9 +1494,9 @@ when stopping.</p>
<p><b>Example intent:</b></p>
<p><b>Example intent:</b></p>
<pre>
<pre>
public void startRun() {
public void startRun() {
    Intent intent = new Intent("vnd.google.fitness.TRACK")
    Intent intent = new Intent(FitnessIntents.ACTION_TRACK)
            .setType("vnd.google.fitness.activity/running")
            .setType("vnd.google.fitness.activity/running")
            .putExtra("actionStatus", "ActiveActionStatus");
            .putExtra(FitnessIntents.EXTRA_STATUS, FitnessIntents.STATUS_ACTIVE);
    if (intent.resolveActivity(getPackageManager()) != null) {
    if (intent.resolveActivity(getPackageManager()) != null) {
        startActivity(intent);
        startActivity(intent);
    }
    }
@@ -1492,7 +1524,8 @@ public void startRun() {
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -1503,14 +1536,21 @@ public void startRun() {
  </ul>
  </ul>
</div>
</div>


<p>To track a workout, use the <code>"vnd.google.fitness.TRACK"</code> action with the
<p>To track a workout, use the
<code>"vnd.google.fitness.activity/other"</code> MIME type and set the <code>"actionStatus"</code>
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_TRACK">
extra to <code>"ActiveActionStatus"</code> when starting and to <code>"CompletedActionStatus"</code>
<code>ACTION_TRACK</code></a> action with the <code>"vnd.google.fitness.activity/other"</code>
when stopping.</p>
MIME type and set the
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#EXTRA_STATUS">
<code>EXTRA_STATUS</code></a> extra to
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_ACTIVE">
<code>STATUS_ACTIVE</code></a> when starting and to
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_COMPLETED">
<code>STATUS_COMPLETED</code></a> when stopping.</p>


<dl>
<dl>
  <dt><b>Action</b></dt>
  <dt><b>Action</b></dt>
  <dd><code>"vnd.google.fitness.TRACK"</code><dd>
  <dd><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_TRACK">
      <code>ACTION_TRACK</code></a><dd>


  <dt><b>Data URI</b></dt>
  <dt><b>Data URI</b></dt>
  <dd>None</dd>
  <dd>None</dd>
@@ -1521,9 +1561,12 @@ when stopping.</p>
  <dt><b>Extras</b></dt>
  <dt><b>Extras</b></dt>
  <dd>
  <dd>
    <dl>
    <dl>
      <dt><code>"actionStatus"</code></dt>
      <dt><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#EXTRA_STATUS">
      <dd>A string with the value <code>"ActiveActionStatus"</code> when starting and
          <code>EXTRA_STATUS</code></a></dt>
      <code>"CompletedActionStatus"</code> when stopping.</dd>
      <dd>A string with the value <a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_ACTIVE">
          <code>STATUS_ACTIVE</code></a> when starting and
      <a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#STATUS_COMPLETED">
          <code>STATUS_COMPLETED</code></a> when stopping.</dd>
    </dl>
    </dl>
  </dd>
  </dd>
</dl>
</dl>
@@ -1532,9 +1575,9 @@ when stopping.</p>
<p><b>Example intent:</b></p>
<p><b>Example intent:</b></p>
<pre>
<pre>
public void startWorkout() {
public void startWorkout() {
    Intent intent = new Intent("vnd.google.fitness.TRACK")
    Intent intent = new Intent(FitnessIntents.ACTION_TRACK)
            .setType("vnd.google.fitness.activity/other")
            .setType("vnd.google.fitness.activity/other")
            .putExtra("actionStatus", "ActiveActionStatus");
            .putExtra(FitnessIntents.EXTRA_STATUS, FitnessIntents.STATUS_ACTIVE);
    if (intent.resolveActivity(getPackageManager()) != null) {
    if (intent.resolveActivity(getPackageManager()) != null) {
        startActivity(intent);
        startActivity(intent);
    }
    }
@@ -1562,7 +1605,8 @@ public void startWorkout() {
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -1572,12 +1616,15 @@ public void startWorkout() {
  </ul>
  </ul>
</div>
</div>


<p>To show the user's heart rate, use the <code>"vnd.google.fitness.VIEW"</code> action with the
<p>To show the user's heart rate, use the
<code>"vnd.google.fitness.data_type<br/>/com.google.heart_rate.bpm"</code> MIME type.</p>
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_VIEW">
<code>ACTION_VIEW</code></a> action with the
<code>"vnd.google.fitness.data_type/com.google.heart_rate.bpm"</code> MIME type.</p>


<dl>
<dl>
  <dt><b>Action</b></dt>
  <dt><b>Action</b></dt>
  <dd><code>"vnd.google.fitness.VIEW"</code><dd>
  <dd><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_VIEW">
      <code>ACTION_VIEW</code></a><dd>


  <dt><b>Data URI</b></dt>
  <dt><b>Data URI</b></dt>
  <dd>None</dd>
  <dd>None</dd>
@@ -1592,8 +1639,8 @@ public void startWorkout() {


<p><b>Example intent:</b></p>
<p><b>Example intent:</b></p>
<pre>
<pre>
public void showHR() {
public void showHeartRate() {
    Intent intent = new Intent("vnd.google.fitness.VIEW")
    Intent intent = new Intent(FitnessIntents.ACTION_VIEW)
            .setType("vnd.google.fitness.data_type/com.google.heart_rate.bpm");
            .setType("vnd.google.fitness.data_type/com.google.heart_rate.bpm");
    if (intent.resolveActivity(getPackageManager()) != null) {
    if (intent.resolveActivity(getPackageManager()) != null) {
        startActivity(intent);
        startActivity(intent);
@@ -1623,7 +1670,8 @@ public void showHR() {
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -1633,12 +1681,16 @@ public void showHR() {
  </ul>
  </ul>
</div>
</div>


<p>To show the user's step count, use the <code>"vnd.google.fitness.VIEW"</code> action with the
<p>To show the user's step count, use the
<code>"vnd.google.fitness.data_type<br/>/com.google.step_count.cumulative"</code> MIME type.</p>
<a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_VIEW">
<code>ACTION_VIEW</code></a> action with the
<code>"vnd.google.fitness.data_type<br/>/com.google.step_count<br/>.cumulative"</code> MIME
type.</p>


<dl>
<dl>
  <dt><b>Action</b></dt>
  <dt><b>Action</b></dt>
  <dd><code>"vnd.google.fitness.VIEW"</code><dd>
  <dd><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_VIEW">
      <code>ACTION_VIEW</code></a><dd>


  <dt><b>Data URI</b></dt>
  <dt><b>Data URI</b></dt>
  <dd>None</dd>
  <dd>None</dd>
@@ -1654,7 +1706,7 @@ public void showHR() {
<p><b>Example intent:</b></p>
<p><b>Example intent:</b></p>
<pre>
<pre>
public void showStepCount() {
public void showStepCount() {
    Intent intent = new Intent("vnd.google.fitness.VIEW")
    Intent intent = new Intent(FitnessIntents.ACTION_VIEW)
            .setType("vnd.google.fitness.data_type/com.google.step_count.cumulative");
            .setType("vnd.google.fitness.data_type/com.google.step_count.cumulative");
    if (intent.resolveActivity(getPackageManager()) != null) {
    if (intent.resolveActivity(getPackageManager()) != null) {
        startActivity(intent);
        startActivity(intent);
@@ -1689,7 +1741,8 @@ public void showStepCount() {
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -1888,7 +1941,8 @@ public void playMedia(Uri file) {
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -2134,7 +2188,8 @@ but the user must press the <em>Call</em> button to begin the phone call.</p>
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -2211,6 +2266,98 @@ public void dialPhoneNumber(String phoneNumber) {






<h2 id="Search">Search</h2>

<h3 id="SearchOnApp">Search using a specific app</h3>

<!-- Google Now box -->
<div class="now-box">
  <div class="now-img-cont">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30"/></a>
  </div>
  <p class="now-title">Google Now</p>
  <ul>
    <li>"search for cat videos on myvideoapp"</li>
  </ul>
</div>

<p>To support search within the context of your app, declare an intent filter in your app with
the <code>SEARCH_ACTION</code> action, as shown in the example intent filter below.</p>

<dl>
<dt><b>Action</b></dt>
<dd>
  <dl>
    <dt><code>"com.google.android.gms.actions.SEARCH_ACTION"</code></dt>
    <dd>Support search queries from Google Now.</dd>
  </dl>
</dd>

<dt><b>Extras</b></dt>
<dd>
  <dl>
    <dt><code>{@link android.app.SearchManager#QUERY}</code></dt>
    <dd>A string that contains the search query.</dd>
  <dl>
</dd>
</dl>

<p><b>Example intent filter:</b></p>
<pre>
&lt;activity android:name=".SearchActivity">
    &lt;intent-filter>
        &lt;action android:name="com.google.android.gms.actions.SEARCH_ACTION"/>
        &lt;category android:name="android.intent.category.DEFAULT"/>
    &lt;/intent-filter>
&lt;/activity>
</pre>



<h3 id="SearchWeb">Perform a web search</h3>

<p>To initiate a web search, use the {@link android.content.Intent#ACTION_WEB_SEARCH} action
and specify the search string in the
{@link android.app.SearchManager#QUERY SearchManager.QUERY} extra.</p>


<dl>
  <dt><b>Action</b></dt>
  <dd>{@link android.content.Intent#ACTION_WEB_SEARCH}</dd>

  <dt><b>Data URI Scheme</b></dt>
  <dd>None</dd>

  <dt><b>MIME Type</b></dt>
  <dd>None</dd>

  <dt><b>Extras</b></dt>
  <dd>
    <dl>
      <dt>{@link android.app.SearchManager#QUERY SearchManager.QUERY}</dt>
      <dd>The search string.</dd>
    </dl>
  </dd>
</dl>

<p><b>Example intent:</b></p>
<pre>
public void searchWeb(String query) {
    Intent intent = new Intent(Intent.ACTION_SEARCH);
    intent.putExtra(SearchManager.QUERY, query);
    if (intent.resolveActivity(getPackageManager()) != null) {
        startActivity(intent);
    }
}
</pre>








<h2 id="Settings">Settings</h2>
<h2 id="Settings">Settings</h2>


@@ -2379,7 +2526,8 @@ at {@link android.provider.Telephony}.</p>
<div class="now-box">
<div class="now-box">
  <div class="now-img-cont">
  <div class="now-img-cont">
    <a href="#Now">
    <a href="#Now">
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img" width="30" height="30" alt=""/>
      <img src="{@docRoot}guide/components/images/voice-icon.png" class="now-img"
           width="30" height="30" alt=""/>
    </a>
    </a>
  </div>
  </div>
  <p class="now-title">Google Now</p>
  <p class="now-title">Google Now</p>
@@ -2447,46 +2595,6 @@ open your Android app instead of your web page.</p>






<h3 id="SearchWeb">Perform a web search</h3>

<p>To initiate a web search, use the {@link android.content.Intent#ACTION_WEB_SEARCH} action
and specify the search string in the
{@link android.app.SearchManager#QUERY SearchManager.QUERY} extra.</p>


<dl>
  <dt><b>Action</b></dt>
  <dd>{@link android.content.Intent#ACTION_WEB_SEARCH}</dd>

  <dt><b>Data URI Scheme</b></dt>
  <dd>None</dd>

  <dt><b>MIME Type</b></dt>
  <dd>None</dd>

  <dt><b>Extras</b></dt>
  <dd>
    <dl>
      <dt>{@link android.app.SearchManager#QUERY SearchManager.QUERY}</dt>
      <dd>The search string.</dd>
    </dl>
  </dd>
</dl>

<p><b>Example intent:</b></p>
<pre>
public void searchWeb(String query) {
    Intent intent = new Intent(Intent.ACTION_SEARCH);
    intent.putExtra(SearchManager.QUERY, query);
    if (intent.resolveActivity(getPackageManager()) != null) {
        startActivity(intent);
    }
}
</pre>










@@ -2588,7 +2696,8 @@ about declaring each intent filter, click on the action description.</p>
      <li>"stop cycling"</li>
      <li>"stop cycling"</li>
    </ul>
    </ul>
  </td>
  </td>
  <td><code>"vnd.google.fitness.TRACK"</code></td>
  <td><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_TRACK">
      <code>FitnessIntents.ACTION_TRACK</code></a></td>
</tr>
</tr>
<tr>
<tr>
  <td>
  <td>
@@ -2599,7 +2708,8 @@ about declaring each intent filter, click on the action description.</p>
      <li>"stop running"</li>
      <li>"stop running"</li>
    </ul>
    </ul>
  </td>
  </td>
  <td><code>"vnd.google.fitness.TRACK"</code></td>
  <td><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_TRACK">
      <code>FitnessIntents.ACTION_TRACK</code></a></td>
</tr>
</tr>
<tr>
<tr>
  <td>
  <td>
@@ -2610,7 +2720,8 @@ about declaring each intent filter, click on the action description.</p>
      <li>"stop workout"</li>
      <li>"stop workout"</li>
    </ul>
    </ul>
  </td>
  </td>
  <td><code>"vnd.google.fitness.TRACK"</code></td>
  <td><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_TRACK">
      <code>FitnessIntents.ACTION_TRACK</code></a></code></td>
</tr>
</tr>
<tr>
<tr>
  <td>
  <td>
@@ -2620,7 +2731,8 @@ about declaring each intent filter, click on the action description.</p>
      <li>"what's my bpm"</li>
      <li>"what's my bpm"</li>
    </ul>
    </ul>
  </td>
  </td>
  <td><code>"vnd.google.fitness.VIEW"</code></td>
  <td><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_VIEW">
      <code>FitnessIntents.ACTION_VIEW</code></a></code></td>
</tr>
</tr>
<tr>
<tr>
  <td>
  <td>
@@ -2630,7 +2742,8 @@ about declaring each intent filter, click on the action description.</p>
      <li>"what's my step count"</li>
      <li>"what's my step count"</li>
    </ul>
    </ul>
  </td>
  </td>
  <td><code>"vnd.google.fitness.VIEW"</code></td>
  <td><a href="{@docRoot}reference/com/google/android/gms/fitness/FitnessIntents.html#ACTION_VIEW">
      <code>FitnessIntents.ACTION_VIEW</code></a></td>
</tr>
</tr>
<tr>
<tr>
  <td style="vertical-align:middle">Local</td>
  <td style="vertical-align:middle">Local</td>
@@ -2672,6 +2785,16 @@ about declaring each intent filter, click on the action description.</p>
  </td>
  </td>
  <td>{@link android.provider.MediaStore#INTENT_ACTION_VIDEO_CAMERA MediaStore<br/>.INTENT_ACTION_VIDEO_CAMERA}</td>
  <td>{@link android.provider.MediaStore#INTENT_ACTION_VIDEO_CAMERA MediaStore<br/>.INTENT_ACTION_VIDEO_CAMERA}</td>
</tr>
</tr>
<tr>
  <td style="vertical-align:middle">Search</td>
  <td>
    <p><a href="#SearchOnApp">Search using a specific app</a></p>
    <ul class="now-list">
      <li>"search for cat videos <br/>on myvideoapp"</li>
    </ul>
  </td>
  <td><code>"com.google.android.gms.actions<br/>.SEARCH_ACTION"</code></td>
</tr>
<tr>
<tr>
  <td style="vertical-align:middle">Web browser</td>
  <td style="vertical-align:middle">Web browser</td>
  <td>
  <td>