Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Configure a Bluetooth GPS Receiver for use with the Location API

by Retired ‎02-16-2010 03:36 PM - edited ‎09-16-2010 03:17 PM (7,189 Views)

Summary

 

This article applies to the following:

  • BlackBerry® Device Software 4.2 and later
  • BlackBerry Java™ Development Environment (JDE) 4.2 and later

Description

 

BlackBerry devices can be configured to source their Location Based Services data from either the onboard GPS chip (if available) or from a Bluetooth® GPS receiver. When an application accesses the Location API (either via the LocationProvider or LocationListener), the location data returned will automatically be obtained from the specified data source.

 

With respect to the Location API, the data source is defined to be either the onboard GPS chip or a Bluetooth GPS Receiver that has been paired with the BlackBerry device via the Options > Bluetooth screen.

 

Note that if the BlackBerry device has onboard GPS, it will be used as the default data source for Location Based Services data. If the device does not have onboard GPS, then the default data source is blank. Once a Bluetooth GPS receiver has been paired with the BlackBerry device, the default setting can be changed by the user via a choice field under Options > Location Based Services screen.

 

The net effect of this feature is that an application developer will no longer need to manage the Bluetooth communication with a GPS receiver; the Location API will now simply try to retrieve GPS coordinates from the user defined default data source, regardless of whether it is an onboard GPS or a Bluetooth GPS receiver.

 


Additional Information

 

For more information on JSR 179 and how to use the Location APIs, see the section “Using location information” of the BlackBerry Java Development Environment 4.2 – Development Guide.

Contributors
Users Online
Currently online: 4 members 925 guests
Please welcome our newest community members: