0
votes

I made an application for Windows Phone 8 which features press three time lock button. My problem is, that as soon as the phone locks the screen, I want my application to run in background. I can't figure out a 'clean' way to do this.Can we run background app when lock screen enabled.

1

1 Answers

1
votes

The following code will allow your app to continue to run when the lock screen is activated:

PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled;

MSDN