Blackberry GPS and BlackBerry Maps Handbuch - Seite 6

Blättern Sie online oder laden Sie pdf Handbuch für Software Blackberry GPS and BlackBerry Maps herunter. Blackberry GPS and BlackBerry Maps 35 Seiten. Version: 4.7.0

Development Guide
2.
Invoke criteria.setHorizontalAccuracy(NO_REQUIREMENT) to specify longitudinal accuracy is not
required.
3.
Invoke criteria.setVerticalAccuracy(NO_REQUIREMENT) to specify latitudinal accuracy is not
required.
4.
Invoke criteria.setCostAllowed(true) to specify that this mode can incur cost.
5.
Invoke setPreferredPowerConsumption(POWER_USAGE_LOW) to specify power consumption is low.
6.
Invoke LocationProvider.getInstance(), storing the returned object in a LocationProvider object.
LocationProvider provider = LocationProvider.getInstance(criteria);

Get location information from GPS satellites using PDE

1.
Create an instance of a Criteria object.
Criteria criteria = new Criteria();
2.
Invoke criteria.setHorizontalAccuracy(NO_REQUIREMENT) to specify longitudinal accuracy is not
required.
3.
Invoke criteria.setVerticalAccuracy(NO_REQUIREMENT) to specify latitudinal accuracy is not
required.
4.
Invoke criteria.setCostAllowed(true) to specify that this mode can incur cost.
5.
Invoke criteria.setPreferredPowerConsumption(int level) using one of
POWER_USAGE_MEDIUM, or NO_REQUIREMENT as the parameter to specify power consumption is medium or not
required.
6.
Invoke LocationProvider.getInstance(), storing the returned object in a LocationProvider object.
LocationProvider provider = LocationProvider.getInstance(criteria);

Get location information from GPS satellites and the GPS receiver on a BlackBerry device

1.
Create an instance of a Criteria object.
Criteria criteria = new Criteria();
2.
Complete one of the following tasks:
Task
Specify a level of
accuracy for
longitudinal and
latitudinal data.
4
Steps
a.
Invoke criteria.setHorizontalAccuracy(int accuracy) using an
integer value that represents the accuracy, in meters.
b.
Invoke criteria.setVerticalAccuracy(int accuracy) using an
integer value that represents the accuracy, in meters.
Specifying the source of GPS location information