Android移动速度速度、Android

2023-09-04 02:57:31 作者:请别靠近我

如何计算的速度与Android手机是移动的,即用手机在他的口袋里/手用户。基本上我想调用基于用户的速度也有一定的活动,我将如何计算?基于移动什么参数。 谢谢。

How to calculate the speed with which android mobile is moving, i.e user with mobile in his pocket/hand. Basically I would like to invoke some activity based on the user's speed, how will I calculate? based on what parameters in mobile. Thank you.

推荐答案

您可以检查 MyTracks 的SRC code。他们做的正是你想要的。

You can check MyTracks's src code. They do exactly what you want.