Does Android support SVG (natively)?
It depends on what you mean by “Android,” “SVG,” and “natively.”
Android is a mobile operating system. It has several versions.
SVG is the standard. It has several versions.
“Naturally” can mean anything: “I can decode SVG through some Java classes” so that “the Android web browser can display SVG.”
I can tell you that the Android-based Android browser displays this web page perfectly on Android 3.2 and Android 4.0, but it does not work on Android 2.3.
I can tell you that there is no set of SVG parsers for Java classes, and that ImageView and similar widgets are not able to work directly with SVG. You can use WebView to display some SVG , given that the browser seems to support it on newer versions of Android, although it is possible that SVG is supported through some plugin that is not automatically available for WebView .
I can’t say which version of SVG is supported by the browser, as this does not seem to be documented. You will need to run some tests and see if it supports the specific SVG structures that you want to use.
CommonsWare
source share