LocationManager.requestLocationUpdates添加或更新? [英] LocationManager.requestLocationUpdates add or update?

查看:463
本文介绍了LocationManager.requestLocationUpdates添加或更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在看的LocationManager来获取定期报告位置的最佳位置。我很好奇LocationManager.requestLocationUpdates方法。如果我调用该方法多次以不同minTime和minDistance依旧不调用removeUpdates它会发生什么?
将它添加新的请求或者只是更新现有的吗?结果
我想对此进行测试,它是不是在此刻有点容易。你的答案是AP preciated。

I am looking at LocationManager to get best location for periodical reporting location. I am curious about LocationManager.requestLocationUpdates method. What would it happen if I invoke this method several times with different minTime and minDistance without calling removeUpdates? Will it add new request or just update the existing one?
I am trying to test this, it is not bit easy at the moment. Your answer would be appreciated.

推荐答案

这将更新现有的请求。

这篇关于LocationManager.requestLocationUpdates添加或更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆