在android中计算用户移动速度 [英] Calculating user moving speed in android
本文介绍了在android中计算用户移动速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要计算用户移动的速度.所以我们需要两件东西来计算速度,它们是 GPS
和 Accelerometer
.
I need to calculate Speed with which the user is moving. So we need two things to calculate speed which are GPS
and Accelerometer
.
但两者都有其局限性.
1)GPS
不是一直可用.虽然我总是从 Network provider
获取用户的当前位置,而不是从 GPS
.
1)GPS
is not available all the time.While I getting the current location of user always I am getting from Network provider
only and not from GPS
.
2)加速度计
不准确.
那么我应该采用哪种方法?
So which approach should I go with?
推荐答案
基于 GPS 的实现可用 在这个链接
An implementation, based on the GPS, is available at this link
这篇关于在android中计算用户移动速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文