Run a service after the phone has been unlocked for a variable amount of time
===

I'm looking for a method to run a service after a certain amount of time. However, I cannot use the standard [AlarmManager](http://developer.android.com/reference/android/app/AlarmManager.html) for this problem as I don't want to rely on my app being running all the time, and AlarmManager takes into account the time when the phone is locked.

Basically, the goal is for a service to run after the user has been using their phone for a set amount of time, such as one hour. This timer should allow for breaks in the time when the phone is locked or turned off.