Android Question Notify is making me reinitialize it every time

GuyBooth

Active Member
Licensed User
Longtime User
Not only does SetInfo have to be the last instruction before I use the .notify method, I am finding I have to reinitialize it every time I use it. Otherwise my app is crashing with the message below. I am not changing any other properties between calls, just the message - but the reinitialization is required.
Is this the expected behaviour?

B4X:
Error occurred on line: <line>
java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again.
    at anywheresoftware.b4a.objects.NotificationWrapper.getND(NotificationWrapper.java:91)
    at anywheresoftware.b4a.objects.NotificationWrapper.SetInfo2New(NotificationWrapper.java:209)
    at anywheresoftware.b4a.objects.NotificationWrapper.SetInfoNew(NotificationWrapper.java:180)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:755)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:345)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
    at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:259)
    at b4a.themusicmachine.tmm_flipflop._setnotification(tmm_flipflop.java:1208)
    at b4a.themusicmachine.tmm_flipflop._notify(tmm_flipflop.java:1187)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
    at anywheresoftware.b4a.BA$2.run(BA.java:360)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6780)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)
 
Top