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