How to generate notifications in Android?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kenoma

So I have an Android game project where you capture, feed and test organisms. I want to have this mechanic where if you leave an organism on the testing area and accidentally leave it there for a few hours or even days, it’ll notify your phone saying something like “System: You left your water measurer on the testing table. It might die or escape. Return it to the containment table immediately.” I’m making an idle simulator game for Android so it’ll be a nice feature to have.

Have you looked at the documentation on talking to the host OS? Maybe the alert() function will help you with what you need?

Ertain | 2019-05-11 03:05