有没有办法在智能位置库中检索以前缓存的位置,以防获取新位置的时间太长?如果不是,那么将新位置保存到缓存以便以后在类似情况下使用的最佳过程是什么?
发布于 2018-03-22 12:05:49
找到解决方案:
public static Location getLastLocation(Context context){
        return SmartLocation.with(context)
                .location()
                .getLastLocation();
    }此方法将返回上次保存的最佳位置
https://stackoverflow.com/questions/49400503
复制相似问题