I am trying to use svg-android to display a roadmap that I exported from openstreetmap .
I follow the instructions from the tutorial and it did a great job with the graphics test.svg (3KB). But the exported card is about 500 KB. When I try to load a map, I get an SVGParseException:
System.err: com.larvalabs.svgandroid.SVGParseException: java.lang.NumberFormatException
System.err: at com.larvalabs.svgandroid.SVGParser.parse(Unknown Source)
System.err: at com.larvalabs.svgandroid.SVGParser.getSVGFromResource(Unknown Source)
System.err: at my.package.view.SVGMapView.loadSVGImage(SVGMapView.java:141)
line 141 says:
svg = SVGParser.getSVGFromResource(getResources(), R.raw.test);
is it possible to preload the svg image in an additional stream or is there a better solution for my problem?
thank
source
share