I have my offline map tiles on the android device here, they are already unzipped:
/sdcard/application-name/uuid/tiles
and I have set the OSM cache like so:
File applicationDir = new File(Environment.getExternalStorageDirectory(), File.separator + "application-name" + File.separator + "uuid" + File.separator);
OpenStreetMapTileProviderConstants.setCachePath(applicationDir.getAbsolutePath());
I then set up the TileSource:
ITileSource tileSource = new XYTileSource ("tiles", 0, 18, 256, ".png", new String[0]);
and the TileProvider:
tileProvider = new MapTileProviderBasic(getActivity());
tileProvider.setTileSource(tileSource);
I have set
OpenStreetMapTileProviderConstants.DEBUGMODE = true;
and I get a load of Tile doesn't exist messages.
Any suggestions gratefully received! Thanks.
asked
09 Aug '16, 11:45
Nome
66●1●2●4
accept rate:
100%
It would help if you could like to what Android software you're using to do this.
I'm guessing osmdroid based on https://www.google.co.uk/search?q=new+XYTileSource&ie=utf-8&oe=utf-8&rls=org.mozilla:en-GB:unofficial&client=seamonkey-a&gws_rd=cr , but it'd be nice to clarify.
Yep, sorry it's osmdroid.