JSR179 Criteria 类实用建议

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

 

 

以上摘自:http://supportforums.blackberry.com/t5/Java-Development/JSR179-Criteria-gt-gpsOne-Mode-mapping-for-CDMA-devices/m-p/21937

 

 

setLocationListener(LocationListener listener, int interval, int timeout, int maxAge); 

 


 

 

 

你可能感兴趣的:(Criteria)