private void Application_Activated(object sender, ActivatedEventArgs e) { //Allow app to continue running under the lock screen PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled; }