Open
BlackBerry Maps by using the default
settings
You can open
BlackBerry Maps to display the
default map view by invoking
Invoke.invokeApplication() and passing in a new
MapsArguments object. How the default view is displayed
depends on whether the 'On App Launch' setting in
BlackBerry Maps is set to 'Show my location' or 'Show previous location'.
-
Import the required classes.
import net.rim.blackberry.api.invoke.*;
-
Create a class and a constructor to use to invoke
BlackBerry Maps.
public class invokeMaps
{
public invokeMaps()
{
}
}
-
In the constructor, invoke
Invoke.invokeApplication() to open
BlackBerry Maps. Pass in a new
MapsArguments object.
Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments());
Code sample: Opening
BlackBerry Maps by using the default settings
import net.rim.blackberry.api.invoke.*;
public class invokeMaps
{
public invokeMaps()
{
Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments());
}
}
Was this information helpful? Send us your comments.