1. Download our Official Android App: Forums for Android!

Apps Disable Screen Lock with my own application

Discussion in 'Android Development' started by Ashworth, Nov 26, 2009.

  1. Ashworth

    Ashworth Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    9
    Joined:
    Nov 20, 2009

    Nov 20, 2009
    9
    0
    5
    Hello,

    Does anyone know the API to use to not lock the device while you are in your own application? I'm creating a GPS golf application when you don't always use the phone so sometimes the device and get locked. I would rather just have the screen power off, and have the phone not lock while my application is running. I know there are 3rd party applications that do this system wide, but I just care about my own app.

    Thanks
     

    Advertisement

  2. DaveInNYC

    DaveInNYC Member
    Rank:
    None
    Points:
    16
    Posts:
    52
    Joined:
    Nov 7, 2009

    Nov 7, 2009
    52
    3
    16
  3. Loki117

    Loki117 Guest
    Rank:
    None
    Posts:
    0
    Joined:

    Yup you want a screen on wake lock but be careful this sort of lock will drain battery like no business.

     
  4. Ashworth

    Ashworth Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    9
    Joined:
    Nov 20, 2009

    Nov 20, 2009
    9
    0
    5
    Thanks, this is what I was looking for... Did not think to look at power stuff, I was only looking at screen stuff.

    Many thanks!
     

Share This Page

Loading...