Please explain in code how to handle unlock screen event for 8.1 app. i actually want to read next line from a text file and display it on my notification area every time my screen is unlocked.please explain in detail as i am new to c#.
where to write this code in MainPage.xaml.cs ?!
PhoneApplicationFrame rootFrame = (Application.Current as App).RootFrame;
rootFrame.Obscured += OnObscured;
rootFrame.Unobscured += Unobscured;
void OnObscured(Object sender, ObscuredEventArgs e)
{
}
void Unobscured(Object sender, EventArgs e)
{
}