How can I start GPS track logging from an intent? I'd like to automatically start and stop recording a GPS track by sending an intent, e.g. from Tasker. I don't care what app is used to record the GPS track, and it's OK if I have to set it up myself beforehand, but it shouldn't require any user interaction when I send the intent. I just want to send the intent and have it start recording right away, and later (when my Tasker profile has detected that I've reached the end of the route) stop recording automatically and save the track so that I can review it later.

I also don't care whether the end result is a track that I can only access within the app that recorded it, or a GPX file that gets saved somewhere, or something that gets uploaded to a website automatically.
There's an open-source GPS track recording app called GPSLogger. It has shortcuts to start and stop, and also publishes the necessary intent details, so you can start and stop recording without having to interact with the phone. You can also configure it ahead of time (via the app's settings) to save files in various formats and/or upload to Dropbox, OpenStreetMap, or other sites of your choice.

I'm sure there are other apps with the same functionality.