Ending an activity Edge versus watch

Hi,

Ok, so I've just released quite a fun secondary stopwatch for cycling, it's about as basic as you can get (tap the screen to start timing, tap the screen to stop timing). The guy I built it for seems quite pleased, but he noted that when he does a second activity, it is initially showing the time from the last one.

Now, I haven't got an Edge to test on... I had assumed that it would work like a watch and reload everything when you enter each activity. Obviously, it doesn't...

So... I have two questions and the answer to either one of them would give me a fix!

1. How do I tell that an activity has ended in a DataField? (Allowing me to clear old data.)

2. How do I tell that a new activity has started in a DataField? (Allowing me to initialise new data.)

Thanks,
G