Android uses Gaud API to realize trajectory tracking (homework should be written by itself).
See my last blog: /p/4b773727e42c for the quotation of God API.
The last blog has shown the map, so the functions that need to be realized are as follows:
1. Recording location
2. Draw a track on the map
Declare service components in the application tag of AndroidManifest.xml, and each app has its own independent location service. The statement is as follows:
Mainly positioning+callback function to draw the route.
(You don't need to add it here, but you may get an error but still run or flash back. )
I don't know if it's not positioned correctly. A short walk shows that the gap is a bit big. It is also possible that there will be a deviation between the first positioning and the second positioning, resulting in the inaccuracy of the first line segment.
Long distance trajectory tracking is more accurate.