Reputation: 51
I mean app should run even in lock mode without going back to lock mode?
Upvotes: 2
Views: 616
Reputation: 1525
Can you try by adding following code in App.xaml.cs file public App() constructor
Microsoft.Phone.Shell.PhoneApplicationService.Current.UserIdleDetectionMode = Microsoft.Phone.Shell.IdleDetectionMode.Disabled;
Microsoft.Phone.Shell.PhoneApplicationService.Current.ApplicationIdleDetectionMode = Microsoft.Phone.Shell.IdleDetectionMode.Disabled;
This statement Microsoft.Phone.Shell.PhoneApplicationService.Current.UserIdleDetectionMode = Microsoft.Phone.Shell.IdleDetectionMode.Disabled;
of disabling 'UserIdleDetectionMode' property makes operating system to not to go into idle mode(low power usage state).
This is required in addition 'ApplicationIdleDetectionMode' property disabling, if your application needs to continue running even when the user is not physically interacting with the screen or hardware buttons.
Upvotes: 0
Reputation: 1535
Take a look at this: http://blogs.msdn.com/b/jaimer/archive/2010/11/01/running-a-windows-phone-application-under-the-lock-screen.aspx
Upvotes: 0
Reputation: 8126
Look to the Idle Detection for Windows Phone, especially to User Idle Detection Mode section
Upvotes: 1