• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Disable Screen Lock with my own application

Ashworth

Lurker
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
 
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!
 
Back
Top Bottom