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 partial calculate
-If powerusage = medium and preferredresponsetime = 0,
Mode is aflt
-If powerusage = low mode is cellsite
From: http://supportforums.blackberry.com/t5/Java-Development/JSR179-Criteria-gt-gpsOne-Mode-mapping-for-CDMA-devices/m-p/21937
Setlocationlistener (LocationlistenerListener, int interval, int timeout, int maxage );