The following forum(s) are migrating to a new home on Microsoft Q&A (Preview): Developing Universal Windows apps!

Ask new questions on Microsoft Q&A (Preview).
Interact with existing posts until December 13, 2019, after which content will be closed to all new and existing posts.

Learn More

 none
ApplicationIdleDetectionMode for windows phone 8.1? RRS feed

  • Question

  • In windows phone 7 and 8 all i needed to do was PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled; to allow running under lock screen. What is the equivalent in windows phone 8.1 windows runtime?

    Friday, April 4, 2014 6:00 PM

All replies

  • *guess warning* is the new don't terminate mode?

    http://pauliom.wordpress.com

    Friday, April 4, 2014 7:43 PM
  • Anyone????? why is this so hard to figure out?
    Monday, April 7, 2014 4:58 PM
  • The Idle detection model we're used to only "Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 | Windows Phone OS 7.1", according to http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff941090(v=vs.105).aspx =/

    As a shitty workaround, I'm using a DisplayRequest right now: http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.system.display.displayrequest.aspx

    Idle detection and preventions is a core feature in the WP app lifecycle, I'd be surprised if it didn't show up for Universal/Windows Runtime Apps before the release...

    ~michael


    Life is unsure - always eat the dessert first!

    Thursday, April 17, 2014 5:38 PM
  • Idle detection and preventions is a core feature in the WP app lifecycle, I'd be surprised if it didn't show up for Universal/Windows Runtime Apps before the release...

    Really hope so. This is a definite requirement of my app.

    Saturday, April 19, 2014 12:53 PM
  • I have the same problem.

    DisplayRequest really is a horrible solution and the good ol' ApplicationIdleDetectionMode worked much better and efficient.

    Monday, June 9, 2014 2:40 PM
  • Anyone????? why is this so hard to figure out?

    Still no luck?
    Tuesday, June 10, 2014 1:49 PM
  • It looks like there is an answer here:

    http://msdn.microsoft.com/en-us/library/windows/apps/br241816.aspx

                var displayRequest = new Windows.System.Display.DisplayRequest();
                displayRequest.RequestActive();

    Which theoretically keeps it active until the user intentionally leaves the app. Got it from here:

    http://stackoverflow.com/questions/13202146/prevent-surface-tablet-from-sleeping-while-app-is-running/13202336#13202336


    WordSearchLittleBooks.com - Windows 8, Android, Kindle Fire SmartyPantsCoding.com


    • Edited by SmartyP Wednesday, July 9, 2014 7:09 PM
    Wednesday, July 9, 2014 7:06 PM
  • RequestActive is not a solution nor a workaround.

    My app has a HARD requirement on locking the phone, putting it in your pocket and then doing something. It doesn't need to be a fully fledged background process.


    Saturday, April 25, 2015 8:51 AM
  • Nobody knows the answer? What about the windows 10?
    Friday, December 11, 2015 11:07 PM
  • Maby there's a way to make this work in an UWP app?
    Saturday, December 12, 2015 11:04 AM
  • This is a must have feature for my app under UWP! It is useless without. Please do something!
    Wednesday, September 28, 2016 7:34 AM