Aswathy AD

Aswathy AD

  • NA
  • 17
  • 13.4k

suspend and resume a task

Jul 17 2013 1:11 AM
Hi,,

            I would like to know how to suspend and resume a task while locking and unlocking the screen. I want to suspend the tasks when the screen is locked and to resume it when the screen is unlocked. I have used IdleDetectionMode.Disabled function and ApplicationIdleModeHelper.Current.HasUserAgreedToRunUnderLock to check the screen lock condition. But it is not working. I am not able to stop the task. Please help me regarding this issue. It would be nice if u could send some useful resources ,classes or links based on this.
Waiting for ur reply.

thanks,
Aswathy.

Answers (1)