Run a service after the phone has been unlocked for a variable amount of time
<p>I'm looking for a method to run a service after a certain amount of time. However, I cannot use the standard <a href="http://developer.android.com/reference/android/app/AlarmManager.html" rel="nofollow">AlarmManager</a> 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.</p>

<p>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.</p>
