计算用户移动速度的android [英] Calculating user moving speed in android

查看:2254
本文介绍了计算用户移动速度的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要计算的的速度与用户移动的。因此,我们需要两个东西,计算速度,这是 GPS 加速度

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 不可用所有的time.While我得到的用户总是我从网​​络提供商获取当前位置,而不是只从 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屋!

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