Help Center

Local Navigation

Create a location document to display location information

  1. Import the net.rim.blackberry.api.invoke.Invoke class.
  2. Create a String using required elements or required and optional elements.
    String document = “<lbs> 
    <location y='latitude' x='longitude' label='Location_Label' description='Description'/> 
    <location y='latitude' x='longitude' label='Location_Label' description='Description'/> 
    <location y='latitude' x='longitude' label='Location_Label' description='Description'/>
    ....</lbs>”;
    
    
  3. Invoke Invoke.invokeApplication() using the String as one of the parameters.
    Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments( MapsArguments.ARG_LOCATION_DOCUMENT, document));
    
Previous topic: XML element: <location>

Was this information helpful? Send us your comments.