getLastLocation()从LocationManager经常返回null的方法来选择最佳提供者是非常棘手的.文件说:
getLastLocation()
LocationManager
警告:不要使用LocationManager.getBestProvider()方法或常量GPS_PROVIDER或NETWORK_PROVIDER来侦听位置更新.Glass使用一组动态提供程序,仅侦听单个提供程序可能会导致应用程序错过位置更新.
如何获得最佳位置?