i need to create a notification for each new task that is created... so i call AlarmService with a different id (alarmID) every time I create a new task.
with this code considers only the last notification created :BangHead:
every time I save a new task i have to call this code:
(tmpAlarmID is a sequential number)
the service (AlarmService) is:
any suggestions? thanks
with this code considers only the last notification created :BangHead:
every time I save a new task i have to call this code:
(tmpAlarmID is a sequential number)
'--- Start service ---
AlarmService.DescriptionTitle="Title...."
AlarmService.DescriptionBody="Body....."
AlarmService.AlarmID=tmpAlarmID
StartServiceAt( AlarmService, Alarm, True)
the service (AlarmService) is:
Sub Service_Create
Notification1.Initialize
Notification1.Icon = "icon" 'use the application icon file for the notification
Notification1.Vibrate = True
Notification1.SetInfo(DescriptionTitle, DescriptionBody, "")
Notification1.Sound = True
End Sub
Sub Service_Start (StartingIntent As Intent)
Notification1.Notify (alarmID)
End Sub
any suggestions? thanks
Last edited: