简体   繁体   中英

android-get latest gps coordinates

I need to have latest gps coordinates when gps was enabled , for example I turned on my gps yesterday , today gps is not enabled but I need to have latest coordinate.

is there any way to get latest user gps coordinates when the gps was enabled ?

Thanks

I think that, there is not a direct way to get a "non-existent" gps location. You have to use some of the repository, and then take the data from there. Storing in a database, file, server etc.

LocationManager.getLastKnownLocation()可能会做您想要的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM