Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Disable sleep

Disable sleep

Scheduled Pinned Locked Moved Mobile
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Agweet
    wrote on last edited by
    #1

    hi all...im creating a mobile application that needs to run constantly...is there a way to disable the sleep mode accross different versions of win mob., the earliest will be 2003, is there a way to achieve this? thanks in advance.

    living life on the flip side

    H J 2 Replies Last reply
    0
    • A Agweet

      hi all...im creating a mobile application that needs to run constantly...is there a way to disable the sleep mode accross different versions of win mob., the earliest will be 2003, is there a way to achieve this? thanks in advance.

      living life on the flip side

      H Offline
      H Offline
      Hurricane3000
      wrote on last edited by
      #2

      I know only this way: Your application would must send a keystroke every 30 seconds which makes the operating system think it is being used. This does not stop the screen from auto dimming - this must be set in the CE device System configuration. I have actually installed an application provided of this feature. I hope this help you.

      1 Reply Last reply
      0
      • A Agweet

        hi all...im creating a mobile application that needs to run constantly...is there a way to disable the sleep mode accross different versions of win mob., the earliest will be 2003, is there a way to achieve this? thanks in advance.

        living life on the flip side

        J Offline
        J Offline
        Joel Ivory Johnson
        wrote on last edited by
        #3

        http://www.codeproject.com/KB/mobile/WiMoPower1.aspx Search for "Don't let the device sleep." In short you need to call SystemIdleTimerReset() every so often. the exact rate at which you need to call it will vary based on device settings. There is an example program in this article that will show you how to do it.

        Joel Ivory Johnson (J2i.net) Live Messenger

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups