Intents List: Invoking Google Applications on Android Devices

For more information about intents, see the Intents and Intent Filters.

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.

Note that this list is not comprehensive.

Target Application Intent URI Intent Action Result
Browser http://web_address
https://web_address
VIEW Open a browser window to the URL specified.
"" (empty string)
http://web_address
https://web_address
WEB_SEARCH Opens the file at the location on the device in the browser.
Dialer tel: phone_number CALL

Calls the entered phone number. Valid telephone numbers as defined in the IETF RFC 3966 are accepted. Valid examples include the following:

  • tel:2125551212
  • tel: (212) 555 1212

The dialer is good at normalizing some kinds of schemes: for example telephone numbers, so the schema described isn't strictly required in the Uri(URI string) factory. However, if you have not tried a schema or are unsure whether it can be handled, use the Uri.fromParts(scheme, ssp, fragment) factory instead.

Note:This requires your application to request the following permission in your manifest: <uses-permission id="android.permission.CALL_PHONE" />

tel:phone_number
voicemail:

DIAL

Dials (but does not actually initiate the call) the number given (or the stored voicemail on the phone). Telephone number normalization described for CALL applies to DIAL as well.

Google Maps geo:latitude,longitude
geo:latitude,longitude?z=zoom
geo:0,0?q=my+street+address
geo:0,0?q=business+near+city
VIEW Opens the Maps application to the given location or query. The Geo URI scheme (not fully supported) is currently under development.

The z field specifies the zoom level. A zoom level of 1 shows the whole Earth, centered at the given lat,lng. A zoom level of 2 shows a quarter of the Earth, and so on. The highest zoom level is 23. A larger zoom level will be clamped to 23.

Google Streetview google.streetview:cbll=lat,lng&cbp=1,yaw,,pitch,zoom&mz=mapZoom VIEW Opens the Street View application to the given location. The URI scheme is based on the syntax used for Street View panorama information in Google Maps URLs.

The cbll field is required. The cbp and mz fields are optional.

lat latitude
lng longitude
yaw Panorama center-of-view in degrees clockwise from North.
Note: The two commas after the yaw parameter are required. They are present for backwards-compatibility reasons.
pitch Panorama center-of-view in degrees from -90 (look straight up) to 90 (look straight down.)
zoom Panorama zoom. 1.0 = normal zoom, 2.0 = zoomed in 2x, 3.0 = zoomed in 4x, and so on.
A zoom of 1.0 is 90 degree horizontal FOV for a nominal landscape mode 4x 3 aspect ratio display Android phones in portrait mode will adjust the zoom sothat the vertical FOV is approximately the same as the landscape vertical FOV.This means that the horizontal FOV of an Android phone in portrait mode is muchnarrower than in landscape mode. This is done to minimize the fisheye lenseffect that would be present if a 90 degree horizontal FOV was used in portraitmode.
mapZoom The map zoom of the map location associated with this panorama. This value is passed on to the Maps activity when the Street View "Go to Maps" menu item is chosen. It corresponds to the z parameter in the geo: intent.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. .net core mvc实现一个在线房间棋牌游戏
  2. 死锁的概念与死锁的条件
  3. ASP.NET MVC 中关于路径这个问题
  4. UWP中使用Composition API实现吸顶的实例
  5. Windows 10 - 控件(集合类)的详细介绍
  6. Redis 封装库的实例介绍
  7. asp.net core mvc中如何把二级域名绑定到
  8. 使用一个WPF程序起调一个UWP程序
  9. 分享一些高效的LINQ语句代码
  10. 怎么操作 ASP.NET Web API ?