# \[Android\] How can I create an event (notification) after a set time in 'background'?

**URL:** <https://discourse.processing.org/t/android-how-can-i-create-an-event-notification-after-a-set-time-in-background/40982>\
**Category:** Processing for Android\
**Created:** [February 22, 2023, 6:24am UTC](https://discourse.processing.org/t/android-how-can-i-create-an-event-notification-after-a-set-time-in-background/40982 "2023-02-22T06:24:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [February 22, 2023, 6:24am UTC](https://discourse.processing.org/t/android-how-can-i-create-an-event-notification-after-a-set-time-in-background/40982/1 "2023-02-22T06:24:31Z")

</div>

![qq](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/1/0/101c791fbc0c8e3dda7a66c11c156aa8394bcb08.jpeg)

(example url : [The Best 7 Alarm Clock Apps of 2023](https://www.lifewire.com/best-alarm-clock-apps-4766942) )

1. Run the APP and set the alarm time.
2. Press the Home button and the smartphone goes to the ‘background’ state.
3. Use other APPs.
4. I want to make an alarm sound in ‘10 minutes later’ (at the set alarm time)

This is a question about that matter.  
Q1) How can I create an event (notification) after a set time in ‘background’?

- In summary, **I’m curious about how to make it work in the ‘background’.**

ref1 : [Restarting app programmatically](https://discourse.processing.org/t/restarting-app-programmatically/14658)  
ref2 : [Can Android mode do timelapse image capture and FTP upload - #7 by akenaton](https://discourse.processing.org/t/can-android-mode-do-timelapse-image-capture-and-ftp-upload/28213/7)
