Entering GPS help data

I am trying to develop an application that uses GPS, and I would like to enter XTRA data and a time reference for GPS in order to get a faster fix. My code is as follows:

Bundle bundle = new Bundle();
boolean xtraInjection=locationmanager.sendExtraCommand(LocationManager.GPS_PROVIDER,"force_xtra_injection",bundle);
boolean timeInjection=locationmanager.sendExtraCommand(LocationManager.GPS_PROVIDER,"force_time_injection",bundle);

Regardless of whether the Internet connection is turned on or off (without wifi or cellular), the logical operations of xtraInjection and timeInjection are always true. Thus, I cannot determine if the help information is well entered into GPS.

When the Wi-Fi connection is turned on, the following log message appears (there is no error message if Wi-Fi is disabled):

I/app (  627): timeInjection:true
....
D/GpsLocationProvider(   96): NTP server returned: 1306322421969 (WedMay 25 13:20:21 GMT+02:00 2011) reference: 338139 certainty: 77 systemtime offset: 7162
D/lib_locapi( 96): loc_eng_inject_time, uncertainty = 77

In contrast, there are no log messages associated with XTRA data. If the XTRA data is still valid, does the system not request it? How can I see if it was successfully entered?

, , , :

:

boolean reset=locationmanager.sendExtraCommand(LocationManager.GPS_PROVIDER, "delete_aiding_data", null);

:

I/app (  627): reset:false
D/lib_locapi(   96): loc_eng_ioctl for aiding data deletion returned 0, 1 for success

GPS STATUS, , .

, , - . , logcat? ( ).

+5
1

frameworks/base/services/java/com/android/server/location/GpsLocationProvider.java, , true.

, , , :

  • Android XTRA, . , GPS GPS, . GPS XTRA, .
  • XTRA Qualcomm GPS. , GpsLocationProvider, XTRA.
  • , . GPS SUPL, , XTRA, .
+3

All Articles