I'm trying to implement a service that does some work every second, even when the screen is off.
I have tried using handlers and timertask together with partial wake lock with no luck.
And as far as i know it is not possible to use alarm manager at such low intervals.
How do i achieve this ?
UPDATE
It turned out that all my different timer implementations worked.. After a phone restart, wake lock behaved correctly.
According to isHeld() wake lock was acquired and released correctly, but it behaved as if it was never acquired. Which it probably was not.