Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Latest news

Last at Tue, 6 Dec 2011 18:37:53
Topic: New BlackBerry sample app
See more news »

BlackBerry RMSCache problem

4 replies [Last post]
paul.haenel
User offline. Last seen 2 years 19 weeks ago. Offline
Joined: 08/14/2009

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....

jaak
User offline. Last seen 13 hours 25 min ago. Offline
Joined: 06/19/2008

We'll take a look to it, it takes a bit extra time.

/JaakL

jaak
User offline. Last seen 13 hours 25 min ago. Offline
Joined: 06/19/2008

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.

/JaakL

paul.haenel
User offline. Last seen 2 years 19 weeks ago. Offline
Joined: 08/14/2009

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....

paul.haenel
User offline. Last seen 2 years 19 weeks ago. Offline
Joined: 08/14/2009

fixed it works on a brand new phone install.... so i wiped my bold (dev phone) and it worked on it too...
Great thxs...