Search code examples
windows-phone-7windows-phone-7.1sleeptombstoning

Windows Phone: Forward to different screen when app wakes up after sleep/phone lock


I've developed a windows phone 7 app that I once a user locks the phone whilst running the app, when the phone gets unlocked that the app must forward the user to a different .xmal page.

The reason being is that the app displays sensitive information. So if the user locks his/her phone while in the middle of the app and leaves it on the table, nobody can come and just unlock the phone and see the sensitive information.

So I'd like to forward the user to a "Enter pin" page that I've already created.

Thanks in advance!


Solution

  • Read up on the app activation and deactivation flow. You need to handle all your preparation for the user in this case in the application activation event, that is triggered when the app is pushed from dormant to active state.