androidgps-time

GPS-time in Android


I'm looking for a way to display GPS-time in my app. What is the easiest way to do this?

(It has to be GPS-time due to slight time differences between gps time and internal system time)

Thanks


Solution

  • Whenever you receive a fix from the GPS, the method onLocationChanged is called. The parameter to this method is an instance of Location. One of the methods of this parameter is getTime which will give you what you are looking for. That is if I got right what you are looking for. Read more here