Android Question Run Timer in sleep LCD or power buton switch.


New Member

I need an advice. I have an application where there is a timer and after a while it communicates with the server and displays notifications on the screen.

Problem: When I press the power button, the application jumps to "Activity_Pause" and the timer does not work.

When the LCD screen turns off, the same timer stops working.

How do I ensure that the application communicates with the server at intervals, even when the mobile phone is in sleep mode, and wakes up the LCD display and displays a notification if necessary?

Sorry English is not my language :)