val cm= CacheManager(map)
val mt=MapTile(map.getZoomLevel(),map.scrollX,map.scrollY);
//(cm.loadTile(TileSourceFactory.MAPNIK,mt))
cm.downloadAreaAsync(this,bb,map.minZoomLevel,map.maxZoomLevel);
So that's how I download OSM loaded map! now i want that next time when the application opened it'll direct load the map from local already cached source rather than going to online/network request.
You shouldn't have to do anything, it's automatic. The cache manager basically hooks into the MapView's IFileSystemCache
provider, which by default is the sqlite database. However keep the following in mind.
Configuration
class structureAlso, be advised that the cache manager is now located in the osmdroid-android library due to a partial merge with history with osmbonuspack. See the change log and upgrade guide for more information