我可以打个电话,从HTML在Android? [英] Can I make a phone call from HTML on Android?
问题描述
若要通过HTML电话在iPhone上创建一个< A />
有一个href格式为标签:< A HREF ='电话:123-555-1212'>拨打我和LT; / A>
有没有在Android的equivelant为HTML?
澄清 - 使用格式的href ='远程:123-555-1212确实在Android上工作。我在测试中的设备上的本地Java包装的应用程序。它不会出现,如果我们可以从驻留在本地包装的Web应用程序的调用。
当然可以;它适用于的Android 的太多:
电话:PHONE_NUMBER
调用进入 电话号码。有效电话号码 如IETF RFC 3966中定义的 公认。有效的例子包括 以下内容:*电话:2125551212 *联系电话:(212)555 1212
Android的浏览器使用手机应用程序来处理电话方案,由RFC 3966.
定义
点击像一个链接:
< A HREF =电话:2125551212> 2125551212< / A>
在Android上,将出现手机应用程序,并没有自动拨号pre-输入相应的数字2125551212。
有一个外观 RFC3966
To make a phone call via HTML on an iPhone I create an <A/>
tag with an href formatted as: <a href='tel:123-555-1212'>Dial Me</a>
.
Is there an equivelant for HTML on Android?
CLARIFICATION - using the format href='tele:123-555-1212' does indeed work on on android. I was testing the app within a native Java wrapper on the device. It does not appear as if we can make a call from a web application hosted in a Native Wrapper.
Yes you can; it works on Android too:
tel: phone_number
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 Android browser uses the Phone app to handle the "tel" scheme, as defined by RFC 3966.
Clicking a link like:
<a href="tel:2125551212">2125551212</a>
on Android will bring up the Phone app and pre-enter the digits for 2125551212 without autodialing.
Have a look to RFC3966
这篇关于我可以打个电话,从HTML在Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!