Stopping phone from sleeping


Last Updated:

  1. ophanin

    ophanin Member This Topic's Starter

    Joined:
    Jun 14, 2010
    Messages:
    20
    Likes Received:
    0
    Hi all,

    This is probably a simple question, but I'm coming up with nothing substancial on searches. Is there a good way to stop the phone from sleeping for an application? I was investigating using the PowerManager class, but I am wondering if there is an easier way out there.
     

    Advertisement
  2. speedracer

    speedracer Member

    Joined:
    Nov 13, 2009
    Messages:
    5
    Likes Received:
    0
    I'd say with some certainty that PowerManager/WakeLock is your best option. There are some sample code out there to help you, just google it.
     

Share This Page

Loading...