Alarm Clock can not work

What specifically does not work?
You might provide a more detailed explanation or post your aia for someone to observe the behavior.

Your blue Math Blocks might need to be the green Logic Block = or there could be issues with how you use the Clock.

Now it can work on Blue Stacks, connected through AI Companion. But it doesn't work on my phone, through .apk Install. Interim_Report_a.aia (3.1 MB)

Thanks for your warmhearted help!


'Works ' with Companion and an Android 8.1 Tablet. and installs

using the QR code.

Text.pdf (140.8 KB)

Sorry. Make a simple app example using your alarm reasoning and post it to test. I don't have the time to do debug your app; perhaps someone else will.

It doesn't matter, you have helped me a lot!! Thanks again!

I do not understand. Could you give more information? Thanks!

For me it works on two test devices. The alarms were triggered (sound played) and both devices were in idle (sleep) mode for 10 minutes. Which device & Android version do you use?

Moto g8 and Android version 10.

May I ask which device & Android version do you use? Thanks for your test and reply!

Galaxy Note8 (Android 9) and Pixel 2XL (Android 11).

Typically, Doze mode has a particularly drastic effect on Samsung devices and throttles all possible functions (WiFi connection, timer, CPU etc.) when the device is in the background / idle mode. In order to effectively prevent this on all devices, a Foreground service must be used.

Check it out, if the problem also occurs when the device is connected to a charging cable and charging during the test.

See e.g. here:


Thank you very much!

Hi Anke,

This app is my homework. Now I have to make a decision whether or not to keep the part of alarm clock. if possible, could you sent me the screenshot when the alarm is on? It doesn't matter if you couldn't. Thanks a lot!

Did you try this?

If this works and it doesn't work without charging, then you know for sure that Doze mode is the problem. Then use a Foreground service.

1 Like

Thanks for your quickly reply! I will try what you said. And how to use a Foreground service?

1 Like

I got the time format wrong. Now the alarm clock is working. I want to thank whoever replies to my question.

Yes, this was the first thing that I changed in your project (before testing):

1 Like

I see and thanks for your help!