i'm trying to use svg-android to display a road map i exported from openstreetmap.
I follow the steps from the tutorial and it worked great with a test.svg graphic (3KB). But the exported map is arround 500KB. When i try to load the 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 there a possibility to preload the svg image in an extra thread, or is there a better solution for my problem?
thanks
I watched in the logging, and the Parser says all the time: UNRECOGNIZED SVG COMMAND: symbol – t0mM3k Jul 12 '11 at 09:17