Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在开发 J2ME 应用程序,我很感兴趣是否可以获得 GPS 时间(时间由 GPS 卫星发送)?如何得到它?
Location类有方法,getTimestamp()但我不确定它是否返回卫星定位时间。
getTimestamp()
Location类有方法getExtraInfo(String)。如果您调用它,application/X-jsr179-location-nmea您将获得当前修复的NMEA字符串。肯定有关于卫星定位时间的信息。
getExtraInfo(String)
application/X-jsr179-location-nmea
你不能使用返回坐标吗javax.microedition.location.Coordinates
javax.microedition.location.Coordinates
然后,您可以在给定当前坐标的情况下计算出该时区的当前时间吗?