Hello,
I come from the following thread:
The standard StartReceiverAt is inexact, in order to allow the OS to make optimizations. Worth reading: https://developer.android.com/training/scheduling/alarms Exact scheduling: 1. AddPermission(android.permission.SCHEDULE_EXACT_ALARM) 2. Private ion As Object - class global 3. Private...
"Worth reading:
https://developer.android.com/training/scheduling/alarms"
I took Erel's words to heart and read through the article and found the following:
From the article:
"Repeating alarms allow the system to notify your app on a recurring schedule.
A poorly-designed alarm can cause battery drain and put a significant load on servers. For this reason, on Android 4.4 (API level 19) and higher, all repeating alarms are
inexact alarms.
A repeating alarm has the following characteristics:
- An alarm type. For more discussion, see Choose an alarm type.
- A trigger time. If the trigger time you specify is in the past, the alarm triggers immediately.
- The alarm's interval. For example, once a day, every hour, or every 5 minutes.
- A pending intent that fires when the alarm is triggered. When you set a second alarm that uses the same pending intent, it replaces the original alarm."
How can I implement the whole thing in B4A with receivers, to start a receiver every day at 10 o clock?