I have a repeating alarm setting, I have the activity being launched, the piece I'm missing is having this triggered after x minutes of inactivity.
I'm considering keying off of SCREEN_OFF in a service and then setting an alarm and canceling it on SCREEN_ON, does anyone have an intent or other suggestion for this. I've considering polling for tasks, all kinds of pieces but I'm stuck.
Requirement: - App launches, alarm is set to relaunch app after 5 minutes, user exits/app exits after one minute - alarm triggers, detects phone is in use, resets alarm to trigger in fives minutes - if phone is idle relaunches app for one minute