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
精彩评论