Click here to Skip to main content
15,881,516 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I'm creating an app that logs miles. This should be a counter. It should have a start button that starts the counter and counts the miles as you drive and a stop button that stops. Then it should save the miles locally. Any help? I'm creating it in Android studio. Will I need to use a sensor or maybe like Google Maps? Thanks in advance
Posted

1 solution

I personally can't see how sensors are going to help in this example.

Sensors OverView[^]

Google Maps may be the final place you need to be but plan old GPS is all you need.

Something like this would be a good starting point

programming-gps-on-android-and-calculating-distance-between-two-geographic-locations/[^]

I'm sure if you hit google more than I have you may come up with other examples.

It's always worth a punt on here with the search term Android gps[^]

Hope it helps

/Darren
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900