There are too many smartphone mapping applications to comprehensively list here but a couple favorites are Gaia and Ski Tracks. Most are available for both Android and iPhone. Each one should offer similar export functions so these instructions should be adaptable to whatever you choose.
Cloud storage is a very convenient way to archive and move files around among phone, web or PC and there are all kinds of cloud storage connectors you can install to facilitate this with iCloud Drive, Google Drive, Microsoft OneDrive, Drop Box, etc.
- Finish recording your track, give it a useful name and save it
- Locate the menu or button in your mapping app to export your track in GPX format (do not select KML)
- When you choose export, a list of locations that may include social media, your local phone storage as well as installed cloud connectors will be available
- Choose your cloud storage and browse to a preferred folder within if you like
- Download a connector app (e.g. Google Drive: https://www.google.com/drive/
- Install the app and select the folders on your PC you want to be copied to the cloud (careful with this because you have limited storage both in the cloud and on your PC–lots of photos, for example, can fill one or the other quickly)
- Be sure to select the folder where you store your GPX tracks to be synced between your devices and the cloud