The crash occurs with the following steps:
- start an activity and press through to the field itself (press start twice, doesn't matter if you have a GPS lock or not),
- quickly go back to the watch face (press back twice),
- straight away go back to the data field (pressing start twice).
The code can be found here: https://github.com/darrencroton/Snapshot.
It seems that because i'm defining a bunch of initial values in initialize() for the various settings and formatting, when moving quickly between field and watch face they get forgotten and not reloaded on the second return to the field. The rest of the code then doesn't know what to do with what i'm guessing are now nulls.
That's what i think at least. But i don't want to hardwire numbers that only need to be defined once into sections of the code that get processed every second.
Can anyone help? Many thanks in advance.