Android设备上调用谷歌应用的的Intent 列表

Intents List: Invoking Google Applications on Android Devices

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 ApplicationIntent URIIntent ActionResult
Browserhttp://web_address
https://web_address
VIEWOpen a browser window to the URL specified.
"" (empty string)
http://web_address
https://web_address
WEB_SEARCHOpens the file at the location on the device in the browser.
Dialertel: phone_numberCALL

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 Mapsgeo:latitude,longitude
geo:latitude,longitude?z=zoom
geo:0,0?q=my+street+address
geo:0,0?q=business+near+city
VIEWOpens 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 Streetviewgoogle.streetview:cbll=lat,lng&cbp=1,yaw,,pitch,zoom&mz=mapZoomVIEWOpens 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.

latlatitude
lnglongitude
yawPanorama 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.
pitchPanorama center-of-view in degrees from -90 (look straight up) to 90 (look straight down.)
zoomPanorama 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.
mapZoomThe 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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值