testing tilecache for bitmap tiles

This commit is contained in:
Hannes Janetzek
2014-01-25 23:19:58 +01:00
parent 64c4c3b93c
commit cb629744ec
2 changed files with 24 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ public class BaseMapActivity extends MapActivity {
mTileSource = new OSciMap4TileSource();
if (USE_CACHE) {
mCache = new TileCache(this, "cachedir", "testdb");
mCache = new TileCache(this, null, "tile.db");
mCache.setCacheSize(512 * (1 << 10));
mTileSource.setCache(mCache);
}