Opening BlackBerry Maps
You can display information in BlackBerry® Maps in a variety of ways.
Approach
|
Description
|
Start BlackBerry Maps
from a BlackBerry
device application.
|
You can create a BlackBerry
device application
that can start BlackBerry Maps
and display information. You place location information in a String
variable that is called a location document. You invoke net.rim.blackberry.api.invoke.Invoke.invokeApplication() using as parameters
the net.rim.blackberry.api.invoke.Invoke.APP_TYPE_MAPs
constant and a new instance of a net.rim.blackberry.api.invoke.MapsArguments
object created using the net.rim.blackberry.api.invoke.MapsArguments.
ARG_LOCATION_DOCUMENT
constant and the String variable with the location information. BlackBerry Maps
starts and displays the information in the location document.
|
Open BlackBerry Maps
from the BlackBerry Browser.
|
You can permit a BlackBerry
device user to use the browser on a BlackBerry device to access location information on a web server and display the information in BlackBerry Maps. You create a file with the extension .xloc and place location information in the file. The location information is the same information that you assign to the location document to start BlackBerry Maps
from a BlackBerry
device application. You place the .xloc file on a web server. When a BlackBerry device user accesses the link for the .xloc file, for example http://servername/Filename.xloc, the browser passes the .xloc file as a String to the location document parser.
BlackBerry Maps starts and displays the information in the .xloc file.
|
Was this information helpful? Send us your comments.