Load/Save Activity Monitor Info data in emulator?

So I'm making a history widget, but I have to enter the Activity Monitor Info through the 'Set Activity Monitor Info' menu in the emulator each time I start (or accidentealy close) the emulator window...

Is there an easy way to quickly fill the 7 day history with data?
  • If I were in your situation, I'd mock up something that looks like ActivityMonitor and I'd use that for testing. Once I had everything worked out in the simulator, I'd switch back to using the actual ActivityMonitor module and double-check that everything works.
  • Not really..

    Just keep the sim open.


    Yeah, that was what I was afraid off ;)

    If I were in your situation, I'd mock up something that looks like ActivityMonitor and I'd use that for testing. Once I had everything worked out in the simulator, I'd switch back to using the actual ActivityMonitor module and double-check that everything works.


    And that is a nice idea! Just an extension overwriting the relevant modules... Nice, gonna give that a try!

    *Edit* That indeed works, created a ActivityMonitorDummy object which works just like the ActivityMonitor. Just have to comment the 'using Toybox.ActivityMonitor as ActMon;' lines where I use it and put a global 'var ActMon' in the main app class. Excellent!