Hello,
I have a foreground service that navigates in a sqlite table and downloads some images, and would like to put a counter in the notification to show the number of downloaded images. The service notification is created with this code:
I know that I can't call n.setinfo ater the notification is done and I can't use NB6 class also (because foregroundservice requires the original notification object right?).
How can I update the notification message considering that to create a new notification object for each table record couldn't be a good solution?
I have a foreground service that navigates in a sqlite table and downloads some images, and would like to put a counter in the notification to show the number of downloaded images. The service notification is created with this code:
B4X:
n.Initialize
n.Sound = False
n.Vibrate = False
n.SetInfo("goLunch","Baixando imagens",restaurantMenu)
Service.StartForeground(2,n)
I know that I can't call n.setinfo ater the notification is done and I can't use NB6 class also (because foregroundservice requires the original notification object right?).
How can I update the notification message considering that to create a new notification object for each table record couldn't be a good solution?