开发者

Disable Automatic Linking of Mailing Address in WebView

The android WebView will automatically detect a mailing address in the html and allow you to click on it to launch a map. Is there anyway to disable this without a native code change? Can I add something to the html markup or cancel a javascript event to prevent this from happening?

If I need to make this change in native code, how 开发者_如何学Gois that done?

EDIT: When I say mailing address, I mean a physical street address, like:

123 Main Street Sometown, CA 12345


You might want to try using the following meta tag in the page you're including in the WebView, if that's possible.

<meta name="format-detection" content="address=no" />

Source: http://phpaul.wordpress.com/2011/01/14/writing-a-webpage-for-a-mobile-device/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜