@Taifun I just started testing ...
First problem: on an Android 5 device I get an error (End Application):
This date format works: MM/dd/yyyy
But even when I changed that, I get a Runtime Error, after clicking on Start.
@Taifun I just started testing ...
First problem: on an Android 5 device I get an error (End Application):
This date format works: MM/dd/yyyy
But even when I changed that, I get a Runtime Error, after clicking on Start.
I unlist this thread meanwhile we are doing some more tests...
@Anke please first test using the newer devices, i.e. Android 11, 10, 9 and 8
also from your feedback I can't see, what exactly you are testing... it seems to be, yo are testing the FormatDate block?
if you like to start an alarm only once, you have to pass an instant as input parameter for the datetime
Taifun
I tested the alarmmanager2.apk
on some of my test devices.
It works on:
Does not work on:
thank you... exactly that's the plan...
Taifun
I tested it on my Pixel 4a (Android 11) and your alarmmanager is working and showing the notification.
That error with date format YYYY vs yyyy looks to be a can of worms, from what I see about week years in
https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
and
Beware of Java version changes for week year formatting.
So just format it like this: → MM/dd/yyyy
, then there shouldn't be any problems with any Android version.
Version 2 is now available.
The extension can be used for devices starting from Android 5 (API 21).
Version 2 has been tested successfully on several devices starting from Android 5 up to Android 11 beta. Thank you @Anke and @Peter for your tests.
New in version 2:
Bugfixes, new methods and most importantly after rebooting the device the defined alarms will now automatically be reinitialized
For details, example projects and documentation see here https://puravidaapps.com/alarmmanager.php
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
Version 3 is now available.
New in version 3:
new features repeat weekly, monthly and yearly added.
Which means, the extension can now be used also in birthday reminder apps or similar...
AfterAlarm event added.
Event will fire only if the app is up and running, else a notification will be displayed.
Bugfix updating or cancelling an alarm.
Now after an alarm (interval type ONCE) has been triggered it will be removed from database.
Thank you Per por being the sponsor of version 3!
For details, example projects and documentation see here https://puravidaapps.com/alarmmanager.php
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
Version 4 is now available.
New in version 4: (bells and whistles) version:
properties small icon, large icon, big picture, big text and color added
Example Screenshots
For details, example projects and documentation see here https://puravidaapps.com/alarmmanager.php
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
I'll buy it if it runs in the background
without that it would be useless...
Taifun
I tried the version 4 of the alarm with the "alarm manager example app", but it did not send notification until I fully closed the app. I tried on different devices and made sure the Android version is up to 5, but it still did not work.
@Nelly Add this block and try again.
Do you see the "ALARM !!!
" notifier, if the app is in the foreground or in background (but not closed)?
Note: You also get the message "Welcome back, you are amazing" at the bottom of the screen.
Thank you for your reply!
I've tried this, but sadly it still did not work
Really Thanks a lot for your help!
I downloaded the app and tried a few time, but it still send the notification only when the app is fully closed.
My device type is HTC One A9s, and my android version is 6.
The question was:
Try this:
Put the app in the background by clicking on the device Home
button and wait ...
The app will be opened at the picked alarm time: