开发者

Android gps reading

开发者 https://www.devze.com 2023-02-26 01:25 出处:网络
i want to create androidapp that read the coordinatesaccording to the speed (if the app holder driving ,walking etc.)

i want to create android app that read the coordinates according to the speed (if the app holder driving ,walking etc.)

if the app want to read the coordinates first ch开发者_Python百科eck the speed of the holder,if he driving slowly then the app read the coordinates in each 10m and if he driving fast the app read the coordinates in each 1km. how can i do that?


You can get the speed using getSpeed()

Based on the speed you can choose to get location fixes every x meters

0

精彩评论

暂无评论...
验证码 换一张
取 消