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

Posts: 249
Registered: ‎07-14-2008
My Device: Not Specified

JSR179 Criteria -> gpsOne Mode mapping for CDMA devices

[ Edited ]

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.

Message Edited by shaque on 07-22-2008 04:26 PM