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