07-22-2008 04:23 PM - edited 07-22-2008 04:26 PM
As we all know, CDMA devices are quite different in terms of GPS modes from GSM device. Hence, it is important to understand how the Criteria class of JSR179 can be used to obtain a LocationProvider in a desired gpsOne mode. The following logic is followed by RIM:
-if costAllowed = FALSE, mode is standalone
-else if costAllowed=TRUE,
-if horizontalAccuracy = 0, mode is Data Optimal
-if horizontalAccuracy > 0,
-if multipled fixes requested,
-if powerUsage = HIGH, mode is Speed Optimal;
-if powerUsage != HIGH, mode is MS-based
-else if single fix requested,
-if powerUsage = HIGH, mode is Accuracy Optimal;
-if powerUsage != HIGH, mode is PDE Calculate
-if powerUsage = MEDIUM and preferredResponseTime = 0,
mode is AFLT
-if powerUsage = LOW mode is Cellsite
Note: Some carriers do not support some of these modes. Please contact your carrier for further information.