Not sure what exact change happened, but now all of my Apps are broken. None of my apps are for the play store, they are meant to be installed directly on the device because they are highly proprietary to the environment at which they are used.
But now, I keep getting this error:
java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again.
Here is my code which has always worked in the past:
How do I fix this? or is there a workaround? I have 80+ apps I now have to go through 1 by 1.
I am not using notifications at all, but I remember reading in the past about Sticky services and this was required to make a service stick. I have had android kill my services in the past with the app still open, causing the app to crash. Doing this fixed it.
But now, I keep getting this error:
java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again.
Here is my code which has always worked in the past:
B4X:
sNotif.Initialize
sNotif.Icon = "icon"
ClockTimer.Initialize("ClockTimer", 99)
ClockStopped = True
ClockTimer.Enabled = False
HornTimer.Initialize("HornTimer", 100)
HornTimer.Enabled = False
sNotif.SetInfo("","",Main)
sNotif.Sound = False
sNotif.Notify(1)
Service.StartForeground(1,sNotif)
How do I fix this? or is there a workaround? I have 80+ apps I now have to go through 1 by 1.
I am not using notifications at all, but I remember reading in the past about Sticky services and this was required to make a service stick. I have had android kill my services in the past with the app still open, causing the app to crash. Doing this fixed it.