Invoke BlackBerry Maps by using a KML document
You can invoke BlackBerry® Maps by passing in a MapsArguments
object that specifies the URL of a KML document.
Before you begin: Verify that you have created a KML document and published the document to a web site.
Code sample: Invoking BlackBerry Maps by using a KML document
import net.rim.blackberry.api.invoke.*;
public class invokeMaps
{
public invokeMaps()
{
MapsArguments ma = new MapsArguments
(MapsArguments.ARG_KML, "http://www.example.com/document.kml");
Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, ma);
}
}
Parent topic: Using KML documents with BlackBerry Maps