I assume you know Android general app development. If not, there are many books and instructions available. Regarding Nutiteq and MBTiles:
- Nutiteq wiki has instructions how to get started
- To get Nutiteq SDK as minimum you need nutiteq-sdk.jar, and javaproj-1.0.6-noawt.jar in your project libs folder
- Copy MBTiles file to your device /sdcard folder (or elsewhere)
- To replace online map with MBTiles you need to change map layer definition, replace
TMSMapLayer mapLayer = new TMSMapLayer(new EPSG3857(), 0, 18, 0, "http://otile1.mqcdn.com/tiles/1.0.0/osm/", "/", ".png");
with:
try { MBTilesMapLayer dbLayer = new MBTilesMapLayer(proj, 0, 19, 2, "/sdcard/mymaps.mbtiles", this); mapView.getLayers().addLayer(dbLayer); } catch (IOException e) { // means usually that given .mbtiles file is not found or cannot be opened as sqlite database Log.error(e.getLocalizedMessage()); e.printStackTrace(); }