I am looking for pseudo-code or real code.
My goal is to have a modal message box(as in "stay on top" and "not circumventable") shown at random times between two bounds, like t_in_minutes_minimum
and t_in_minutes_maximum
with always the same content.
If I do not tap okay, the messages should not pile up but close themselves after some time.
- Is there a way to do this with the alarm manager?
- How do I show a modal message outside my application?
- How do I make my message close itself after some time without tapping okay?
PS: I tried a lot.