how to save state & resume watchapp (Run in Background)?

Hi -

From this page

http://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/WatchUi/View.html#onHide-instance_method

it states that for watchapp -
View is the base class for a drawable page. It handles the lifecycle of each View in an app. For widgets and watch-apps the lifecyle is onStart(), onLayout(), onShow(), onUpdate() and onHide()


when the watchapp is running, lets say I want to view the current time or the calender, I long press the down button (F3) and then I see the time, i click back button, but the watchapp is frozen.

how do we mimic the same behaviour like that of the native watchapp like the "running" or "hiking" etc apps?

Thanks.

I've tried OnShow() and onHide() in the code.

function onShow() {
}

function onHide() {
}

Obviously doing that (only?) doesn't work.

help please. :-)