Help Center
Local Navigation
- GPS location information
- Specifying the source of GPS location information
- Retrieving GPS location information
- Specify a response time for retrieving the location of the BlackBerry device
- Retrieve the location information for a BlackBerry device
- Retrieve the speed of the BlackBerry device, in meters per second
- Retrieve the course of the BlackBerry device, in degrees
- Retrieve the number of GPS satellites that a BlackBerry device tracks
- Retrieve the time that a BlackBerry device application retrieved GPS information
- Maintain a connection with GPS satellites
- Get continuous GPS readings using the cell site mode
- Retrieve GPS information during a call
- Retrieve location information updates
- Change the criteria for obtaining location information
- Specifying a GPS receiver as the source for location information
- BlackBerry Maps location information
- Resources
- Glossary
- Provide feedback
- Legal notice
BlackBerry Manuals & Help
>
Documentation for Developers
>
Java Development Guides and API Reference
>
GPS and BlackBerry Maps - Development Guide - BlackBerry Java Development Environment - 4.7.0
Retrieve location information from the GPS receiver on a BlackBerry device
- Import the following classes:
- Create an instance of a Criteria object.
Criteria criteria = new Criteria();
- Complete one of the following tasks to get location information using the GPS receiver on a BlackBerry device:
- Invoke LocationProvider.getInstance() and store the returned object in a LocationProvider object.
LocationProvider provider = LocationProvider.getInstance(criteria);
Next topic: Retrieving GPS location information
Previous topic: Retrieve location information from GPS satellites and the GPS receiver on a BlackBerry
device