Whenever I debug my windows phone app, whether it be on my phone or emulator I always get this Exception. How can I resolve this issue?
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
I’m still a beginner with this.
That’s not a exception.
What I guess is the exception, is that the
PhoneApplicationServiceisn’t created. So you’re getting aNullReferenceException.Either add
PhoneApplicationService = new PhoneApplicationService()on the line above, or ensure following XAML are in your App.xaml