Overview

The Location Picker sample application uses the LocationPicker API to list out the name, a description, and the qualified coordinates (latitude and longitude) of a geographical location on the screen of a BlackBerry® device.

The sample application creates an array of LocationPicker.Picker objects, which act as containers for location picker objects that implement the interface, such as GPSLocationPicker and MapsLocationPicker. The sample application also looks for LocationPicker.Picker objects already existing on the device. These already existing LocationPicker objects are called global location pickers. Global location pickers are created in other applications, and register themselves with the LocationPicker API.

The sample application uses these LocationPicker.Picker objects to populate a single LocationPicker object. It then adds them to the screen, and makes them accessible from a menu.

Next topic: Featured classes

Was this information helpful? Send us your comments.