navigator.pushView()
I understand that to share data between views in a mobile application you need to pass it using the navigator.pushView() call. I've done that and it works, but now I wonder how I can pass data if the user just presses the physical back button on the mobile device.
Do I have to capture the keyboard down event like this:
navigator.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDownHandler);
and use pushView within the handler? will that cancel the original back button call completely? I wonder if there's a better way.
The use case is this: you're in the home view, the user presses a button and you gets to another view (using a pushView call). The user then makes some selections, then presses the physical back button to return to the home view. I need to pass the user selection to the home view somehow.
