Help Center

Local Navigation

Open BlackBerry Maps to display multiple locations on a map

  1. Import the following classes:
    • net.rim.blackberry.api.invoke.Invoke
    • net.rim.blackberry.api.invoke.MapsArguments
  2. Create a String that contains location information for multiple locations.
    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>";
  3. Invoke invokeApplication() using the APP_TYPE_MAPS constant parameter, a new MapsArguments object that uses the ARG_LOCATION_DOCUMENT property, and the location String.
    Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments( MapsArguments.ARG_LOCATION_DOCUMENT, document));

Was this information helpful? Send us your comments.