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
setLocationListener(LocationListener listener, int interval, int timeout, int maxAge);

浙公网安备 33010602011771号