g-app-intents.jd revision 54b6cfa9a9e5b861a9930af873580d6dc20f773c
1page.title=Intents List: Invoking Google Applications on Android Devices
2@jd:body
3
4<div class="sidebox">
5For more information about intents, see the <a href="{@docRoot}guide/topics/intents/">Intents and Intent Filters</a>.
6</div>
7
8<p>The table below lists the intents that your application can send, to invoke Google applications on Android devices in certain ways. For each action/uri pair, the table describes how the receiving Google application handles the intent. </p>
9
10<p>Note that this list is not comprehensive.</p>
11
12  <table>
13      <tr>
14          <th scope="col">Target Application</th>
15          <th scope="col">Intent URI</th>
16          <th scope="col">Intent Action</th>
17          <th scope="col">Result</th>
18      </tr>
19      <tr>
20          <td rowspan="2">Browser</td>
21          <td>http://<em>web_address</em><br />
22              https://<em>web_address</em></td>
23          <td>VIEW</td>
24          <td>Open a browser window to the URL specified. </td>
25      </tr>
26      <tr>
27          <td>&quot;&quot; (empty string) <br />
28          http://<em>web_address</em><br />
29          https://<em>web_address</em></td>
30          <td>WEB_SEARCH</td>
31          <td>Opens the file at the location on the device in the browser. </td>
32      </tr>
33      <tr>
34          <td rowspan="2">Dialer</td>
35          <td height="103">tel: <em>phone_number</em></td>
36          <td>CALL</td>
37          <td><p>Calls the entered phone number. Valid telephone numbers as defined
38              in <a href="http://tools.ietf.org/html/rfc3966">the IETF RFC 3966</a> are
39              accepted. Valid examples include the following:</p>
40              <ul>
41                  <li>tel:2125551212 </li>
42                  <li>tel:
43                      (212) 555 1212</li>
44              </ul>
45              <p>The dialer is good at normalizing some kinds of schemes: for example
46                  telephone numbers, so the schema described isn't strictly required
47                  in the {@link android.net.Uri#parse(java.lang.String)
48                  Uri(URI string)} factory. However, if you have not tried a
49                  schema or are unsure whether it can be handled, use the {@link
50                  android.net.Uri#fromParts(java.lang.String, java.lang.String,
51                  java.lang.String) Uri.fromParts(scheme, ssp, fragment)} factory
52              instead.</p>
53              <p><strong><em>Note:</em></strong>&nbsp;&nbsp;&nbsp;This requires your
54              application to request the following permission in your manifest: <code>&lt;uses-permission
55              id=&quot;android.permission.CALL_PHONE&quot; /&gt;</code></p></td>
56      </tr>
57      <tr>
58          <td><p>tel:<em>phone_number</em><br />
59          voicemail:</p>          </td>
60          <td>DIAL</td>
61          <td><p>Dials (but does not actually initiate the call) the number given
62                  (or the stored voicemail on the phone). Telephone number normalization
63                  described for CALL applies to DIAL as well. </p>              </td>
64      </tr>
65      <tr>
66          <td>Google Maps</td>
67          <td>geo:<em>latitude</em>,<em>longitude</em><br />
68              geo:<em>latitude</em>,<em>longitude</em>?z=<em>zoom</em><br />
69              geo:0,0?q=<em>my+street+address</em><br />
70              geo:0,0?q=<em>business+near+city</em><br />
71          </td>
72          <td>VIEW</td>
73          <td>Opens the Maps application to the given location or query. The Geo URI scheme
74              (not fully supported) is <a href="http://tools.ietf.org/html/draft-mayrhofer-geo-uri-00">currently under
75              development</a>.<p>
76              The <em>z</em> field specifies the zoom level. A zoom level of 1 shows the whole Earth, centered at the
77              given <em>lat</em>,<em>lng</em>. A zoom level of 2 shows a quarter of the Earth, and so on. The highest
78              zoom level is 23. A larger zoom level will be clamped to 23.
79          </td>
80      </tr>
81      <tr>
82          <td>Google Streetview</td>          <td>google.streetview:cbll=<em>lat</em>,<em>lng</em>&amp;cbp=1,<em>yaw</em>,,<em>pitch</em>,<em>zoom</em>&amp;mz=<em>mapZoom</em>
83          </td>
84          <td>VIEW</td>
85          <td>Opens the Street View application to the given location. The URI scheme is
86            based on the syntax used for Street View panorama information in Google Maps URLs.<p>
87            The cbll field is required. The cbp and mz fields are optional.<p>
88     <table border:none>
89       <tr><td><em>lat</em></td><td>latitude</td></tr>
90       <tr><td><em>lng</em></td><td>longitude</td></tr>
91       <tr><td><em>yaw</em></td><td>Panorama center-of-view in degrees clockwise from North.<br />
92       <b>Note:</b> The two commas after the yaw parameter are required. They are present
93       for backwards-compatibility reasons.</td></tr>
94       <tr><td><em>pitch</em></td><td>Panorama center-of-view in degrees from
95           -90 (look straight up) to 90 (look straight down.)</td></tr>
96       <tr><td><em>zoom</em></td><td>Panorama zoom. 1.0 = normal zoom, 2.0 = zoomed in 2x, 3.0 = zoomed in 4x, and so on.<br />
97       A zoom of 1.0 is 90 degree horizontal FOV for a nominal landscape mode 4
98x 3 aspect ratio display Android phones in portrait mode will adjust the zoom so
99that the vertical FOV is approximately the same as the landscape vertical FOV.
100This means that the horizontal FOV of an Android phone in portrait mode is much
101narrower than in landscape mode. This is done to minimize the fisheye lens
102effect that would be present if a 90 degree horizontal FOV was used in portrait
103mode.</td></tr>
104       <tr><td><em>mapZoom</em></td><td>The map zoom of the map location associated with this panorama. This value is passed on to the
105       Maps activity when the Street View "Go to Maps" menu item is chosen. It corresponds to the <em>z</em> paramaeter in
106       the geo: intent.</td></tr>
107       </table>
108          </td>
109      </tr>
110  </table>
111  <p></p>
112