简体   繁体   中英

Speed of Android mobile

How to calculate the speed with which android mobile is moving, ie 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.

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

It will be possible by using GPS. You can take reference of two places and then find out the time required to travel from one place to another by using gps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM