getBestKnownLocation Returns a Location indicating the data from the last known location fix obtained from the given provider. This can be done without starting the provider. Note that this location could be out-of-date,for example if the device was turned off and moved to another location.
什么时候在Android中更新了最后一个已知位置?是否有应用程序在侦听位置提供程序时更新,如果是,如果没有应用程序请求该位置,然后您要求LastKnownLocation()?
解决方法
我想当手机中的某些程序使用此函数requestLocationUpdates时,LastKnownLocation()正在更新.