API to detect screen mode in Mango

amir

New member
Aug 24, 2011
1
0
0
Hi there
I need to display a toaster only when the screen is activated (device is not in standby mode/ locked). I wonder is there any API in mango to detect the screen status? Any help is highly appreciated...
BR
Amir
 
I'm not sure if this is the best way, but you can use the PhoneApplicationFrame.Obscured event to determine when your app is obscured by the OS chrome (including the lockscreen). In your event handling method you can then check the IsLocked property of the ObscuredEventArgs object to see if the screen is locked.
 

Members online

No members online now.

Forum statistics

Threads
338,388
Messages
2,261,401
Members
428,741
Latest member
Osiriss