views:

41

answers:

1

I'm working on an application that displays someone else's database of images. The images they have are all vector graphics and can be converted to any format, however keeping them in a vector format is good because users will probably want to zoom in closely.

The question is, is there a built-in way to display a vector graphic in Android? The format doesn't matter - we can convert. The current format we're considering is PDF, but given that there's no native PDF support, I'd have to do something pretty complex just to get it working (for example, integrating poppler into my app via the NDK). The alternative is to just convert the vector graphics into a simpler format (JPG, GIF) but I'd rather avoid that.

A: 

TinyLive SVG provides an SVG viewer for Android. I haven't tried it, so I've no idea if it's any good or not.

Reading this bug request it seems that SVG might be enabled in the Browser - and so presumably WebView too - in Gingerbread. But since this is a possible feature in future release it probably isn't much help to you now.

Dave Webb