the alarm works fine , but i have some changes on it :
in the Main activity in event Activity_KeyPress (KeyCode As Int) As Boolean :
'StartService(AlarmService) ' Lazreg : 18/07/2017 i comment this line and remark it to **
CancelScheduledService(AlarmService)
StopService(AlarmService)
' Lazreg : 18/07/2017
StartService(AlarmService) ' **
and in the Service_Start event
StopService("") '**
StartServiceAt("", DateTime.Now + 30 * 1000, False)
'StopService("") ' Lazreg : 18/07/2017 i comment this line and remark it to ** in the first line
i tested the alarm on real devices :
Samsung Tab with Android ver 4.4.2
the alarm fires all the times with Remove from Recent Apps after every alarm.
Samsung J2 with Android ver 5.1.1
the alarm fires most of the times with Remove from Recent Apps after every alarm.
Samsung Note 4 with Android ver 6.0.1
the alarm fires sometimes with Remove from Recent Apps after every alarm.
how to schedule and process to fire alarm in the exact time especially devices with android ver > 6
and how to display the widget as designed ? i just see one label in the widget.
thank u so much for your help..
i updated the project file in the first post