Intent based alarm looks so consistent though with many glaring limitations. Based on google developer documentation, it seems programmers can manipulate it beyond its simple below demonstration:
How can it be used to startactivity in b4a when alarm triggers? And how can phone.getSettings("next_alarm_formatted") be used in b4a to take next set alarm?
usage SetAlarm(18,17,Array As Int(2,3,4,5,6)) Sub SetAlarm(Hour As Int, Minutes As Int, days As List) 'manifest: AddPermission(com.android.alarm.permission.SET_ALARM) Dim i As Intent i.Initialize("android.intent.action.SET_ALARM", "") i.PutExtra("android.intent.extra.alarm.HOUR", Hour) 'to make it long running, hour + (day's hour equivalent) i.PutExtra("android.intent.extra.alarm.MINUTES", Minutes) i.PutExtra("android.intent.extra.alarm.DAYS", days) i.PutExtra("android.intent.extra.alarm.SKIP_UI", false) StartActivity(i) Log("alarm set") End Sub