I am seeking help on the exact procedures on setting up the 0.3.0 mapsforge library. I have downloaded ALL the required classes from the 0.3.0 branch here, but I am having a problem where I am unsure how to set up the resources for the rendering. Below is my logcat error:
03-30 17:02:23.475: E/DatabaseRenderer(17312): org.xml.sax.SAXException: No input specified.
03-30 17:02:23.475: E/DatabaseRenderer(17312): at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:288)
03-30 17:02:23.475: E/DatabaseRenderer(17312): at org.mapsforge.android.maps.rendertheme.RenderThemeHandler.getRenderTheme(RenderThemeHandler.java:77)
03-30 17:02:23.475: E/DatabaseRenderer(17312): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.getRenderTheme(DatabaseRenderer.java:66)
03-30 17:02:23.475: E/DatabaseRenderer(17312): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.executeJob(DatabaseRenderer.java:149)
03-30 17:02:23.475: E/DatabaseRenderer(17312): at org.mapsforge.android.maps.mapgenerator.MapWorker.doWork(MapWorker.java:73)
03-30 17:02:23.475: E/DatabaseRenderer(17312): at org.mapsforge.android.maps.PausableThread.run(PausableThread.java:94)
I'm really confused as it seems to be from this line in DatabaseRenderer:
private static RenderTheme getRenderTheme(JobTheme jobTheme) {
InputStream inputStream = null;
try {
inputStream = jobTheme.getRenderThemeAsStream(); //THIS LINE
which gets even more confusing when I look at the jobTheme class:
public interface JobTheme extends Serializable {
/**
* @return an InputStream to read the render theme data from.
* @throws FileNotFoundException
* if the render theme file cannot be found.
*/
InputStream getRenderThemeAsStream() throws FileNotFoundException;
}
I'm very lost on how to debug this as the method as an interface class's method. Thus how is it even possible to call it with a jobTheme object?
Would appreciate any help for this, thanks!