Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 18
Registered: ‎11-16-2011
My Device: 9900
My Carrier: blackberry

How to display the single or multiple location on blackberry

Hi All,


I am trying to display the single or multiple locations on map on blackberry curve 9360.

I am using the following lines of code below.

I am getting runtimeexception while debugging the code.


Please give me some idea or link how to show the loactions on map in blackberry curve 9360.


Thanks in advance



String document = "<lbs>" + "<lbs x='-8052237' y='4346518' label='Waterloo, ON' description='Waterloo, Ontario, Canada' />" + "<location x='-7569792' y='4542349' label='Ottawa, ON'    description='Ottawa, Ontario, Canada' />" + "</lbs>"

Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments( MapsArguments.ARG_LOCATION_DOCUMENT, document));