My application needs the screen be unlocked to do some functions, usually this app runs as background process, how can I prevent auto-lock? I mean on jailbroken environment.
Why does the code below can not be available from SpringBoard?
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];