Question

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!

Was it helpful?

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.

OTHER TIPS

// Code to execute when the application is activated (brought to foreground)
// This code will not execute when the application is first launched
private void Application_Activated(object sender, ActivatedEventArgs e)
{
    this.AddEventLogItem("Application Activated event");
    // load application transient state when it is activated again
    ...
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top