SVG processing under Java on Android and desktop


I am trying to write a Java application that will generate SVG image based on XML file. The application should also be able to show SVG file. My application should run on Android platform and desktop PCs. I read about Swing + Batik but afaik it will not work on Android. What is the best library to achieve this ?

12/23/2010 9:25:32 AM

Accepted Answer

This article in Code Project deals with the subject. Two approaches are presented:

  • android-libsvg library.
  • Anti Grain Geometry engine.

Both solutions have dependencies on native code library, so you would need JNI.

There is also svg4mobile project, which only uses Java.

1/10/2011 8:09:33 AM

Also try this open-source library, Apache 2.0 license:


Performance is good as the actual drawing is handled natively by an object.

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow