问题描述
我发展与PhoneGap的煎茶+ Touch2的+安卓的应用程序。
我有一个面板显示包含电子邮件,文本形式的一些数字各种内容。因为它是当我数一自来水的WebView,andorids默认MailCompose活动开始,当我在数拨号活动开始挖掘。如何从发生禁用此。有一些配置,我从一边的Android缺少加载网址或网页设置的WebView之前。或者从PhoneGap的东西,因为当我看到日志猫就说明下面这行 -
I'm developing an app with phonegap+sencha touch2+android.I've one panel showing various content that contains emails, some numbers in textual form. As it's a WebView when I tap on number, andorids default MailCompose Activity starts, when I tap on number Dialer Activity starts. How can I disable this from happening. Is there some config I'm missing from android side before loading url or web settings for WebView. Or something from Phonegap because when I saw log cat it shows following line -
DroidGap.startActivityForResult(意向,-1)
推荐答案
您应该能够添加以下的<头方式>
HTML文档的
You should be able to add the following to the <head>
of your HTML document.
<head>
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
</head>
这应该最WebKit浏览器,比如Android,黑莓和iOS工作。
This should work on most WebKit browsers, such as Android, BlackBerry, and iOS.
这篇关于禁用电子邮件,数字检测机器人的WebView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!