Im using the BlackBerry JDE and the rimui_maps_lib-1.0.0.jar package...
Im trying to store the the map tiles so i don't need o re-download them everything single time.
I created the RMSCache opbject:
final RmsCache rmsCache = new RmsCache("ML_NETWORK_CACHE_OSMapp", 10485760 ,50);
then in initialized it and of course on close i deinitialize it.
I also added it to my mapComponent.setNetworkChace(rmsChache);
but it just wont work.....
Any help appreciated....
Please try to remove these lines:
public static final RmsCache rmsCache = new RmsCache("ML_NETWORK_CACHE_OSMapp", 10485760 ,50);
rmsCache.initialize();
mapComponent.setNetworkCache(rmsCache);
MapComponent adds 5*64KB RMS cache itself, and this should be optimal for most devices, including BlackBerry. Maybe re-definition of the cache creates problems. If you really need to reconfigure these parameters, use BasicMapComponent instead of MapComponent. That has basically the same API, but it does not have preset following parameters:
- RMS cache: 5*64 KB
- MemoryCache: 128 KB
- Panning: ThreadDrivenPanning
- maptype: OSM Mapnik tiles (tile.openstreetmap.org)
Another hint: if you initialize own RmsCache, then you should also deinitialize it. Then cache index is written, otherwise you have image in RMS, but no index, so these are never found.
HI thxs for your reply...
I have removed the RMS Cache now. Reset the storage of my simulator and i also removed the application from my device and reinstalled it, but i still have the same problem. It doesnt cache the map tiles....
Please help as this is now the only problem with this application....
fixed it works on a brand new phone install.... so i wiped my bold (dev phone) and it worked on it too...
Great thxs...
We'll take a look to it, it takes a bit extra time.
/JaakL