Use any string as activity id (not sure it will always be an int)
Check status code of http request when fetching TCX content.