如何调用电话拨号器在浏览器?或者是不可能的? [英] How to invoke phone dialer in browser? or is it impossible?
问题描述
我搭建Android和iPhone等手机网站,当用户访问我的网站,它是我能够像拨号或短信)?
I build a website for phones like android and iphone,when users are visiting my site,is it possible for me to invoke some system build in activities like Dialer or SMS)?
我想实现这个事业,我希望当用户单击带有电话号码的联系,我可以开始直接调用。
I want to implement this cause I hope when user click the link with phone number,I can start to call directly.
***Edit********
***Edit********
我认为这是在android系统可能的原因,当我点击以下网址:
I think it is possible cause in android when I click a url like this:
<html>
<body>
<a href="market://search?q=pname:com.joelapenna.foursquared">asdfasdfsdf</a>
</body>
</html>
它会打开市场应用,并导致我的应用我搜索。
it will open the market app and lead me to the app I search.
所以我想,如果我们以某种方式格式化URL,也许它也可以在Android的打开拨号器应用。
so I think if we format the url in some way ,maybe it can also open the Dialer app in Android.
ps.I知道,当涉及到iPhone那一定是另外一种情况,但是目前,它是好的足够它与Android,任何一个,任何想法的作品?
ps.I know it must be another case when it comes to Iphone,but currently,it is fine enough it works with Android,any one ,any idea ?
谢谢^ _ ^。
推荐答案
您需要的电话
的协议。这将启动本地电话拨号器。使用它作为
You need the tel
protocol. This will launch the native phone dialer. Use it as
<a href="tel:555-123-4567">
这篇关于如何调用电话拨号器在浏览器?或者是不可能的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!