Hi I was wondering if anyone has encountered this problem before? This is part of my codes in my fragments class:
public View onCreateView(LayoutInflater inflator, ViewGroup container, Bundle savedInstanceState) {
myOpenMapView = new MapView(getMapContext());
File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "offlineMap/singapore.map");
myOpenMapView.setMapFile(file);
return myOpenMapView;
}
Everything seems to be working fine to read the mapfile and I have assured that it exists, but I'm encountering the error below. Anybody has any idea what's this problem below?
03-25 14:14:41.445: E/DatabaseRenderer(1736): null
03-25 14:14:41.445: E/DatabaseRenderer(1736): org.xml.sax.SAXException: No input specified.
03-25 14:14:41.445: E/DatabaseRenderer(1736): at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:288)
03-25 14:14:41.445: E/DatabaseRenderer(1736): at org.mapsforge.map.rendertheme.rule.RenderThemeHandler.getRenderTheme(RenderThemeHandler.java:71)
03-25 14:14:41.445: E/DatabaseRenderer(1736): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.getRenderTheme(DatabaseRenderer.java:64)
03-25 14:14:41.445: E/DatabaseRenderer(1736): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.executeJob(DatabaseRenderer.java:151)
03-25 14:14:41.445: E/DatabaseRenderer(1736): at org.mapsforge.android.maps.mapgenerator.MapWorker.doWork(MapWorker.java:74)
03-25 14:14:41.445: E/DatabaseRenderer(1736): at org.mapsforge.android.maps.PausableThread.run(PausableThread.java:141)
I just realized, in my own library project for mapsforge, i didn't include the resources folder, that contains the renderTheme.xsd as well as all the png files in the osmrender.Is that why that is causing the problem? If so, where should I be putting the resources folder in? I tried putting in the res folder and it gives error.
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.