The most complete answer is:
- Android 2.x default browser does not support SVG.
- Android 3+ browsers support SVG by default.
To add support for SVG in version 2.x of the platform, you have two main options:
- Install a more convenient browser (for example, Firefox or Opera Mobile - support SVG)
- Use JavaScript polyfill, which can parse SVG and display it on HTML5 canvas
The first option is fine if you are just trying to make SVG work for personal use or with a limited (controlled) set of users. This is not a great option if you want to use SVG when targeting a large, uncontrolled user base.
In the latter case, you want to use polyfill. Many JavaScript libraries are available today that can edit SVGs and display on canvas. Two examples:
Using polyfill, you can display your SVG in the ditches in all versions of Android 2.x.
For a more complete example of this approach, you can refer to this blog post that discusses the use of canvg polyfill to create Kendo UI DataViz Pictures (based on SVG) running on Android 2.x. Hope this helps!
Todd Feb 17 '12 at 18:11 2012-02-17 18:11
source share