我正在用phonegap+sencha touch2+android开发一个应用程序。我有一个面板显示各种内容,其中包含电子邮件,一些文本形式的数字。因为当我点击数字时它是一个拨号器,当我点击数字拨号程序活动启动时,默认的MailCompose活动就会启动。我如何才能阻止这种情况的发生。在为WebView加载url或web设置之前,我是否在android端遗漏了一些配置。或者来自Phonegap的东西,因为当我看到log cat时,它显示了下面的行-
DroidGap.startActivityForResult(intent,-1)
发布于 2012-08-04 01:34:41
您应该能够将以下内容添加到HTML文档的<head>中。
<head>
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
</head>这应该可以在大多数WebKit浏览器上运行,比如Android、BlackBerry和iOS。
https://stackoverflow.com/questions/11798718
复制相似问题