Android Question notification NB6 flags error

Makumbi

Well-Known Member
Licensed User
Please help i get this error when i debug my app
B4X:
    Dim n As NB6
                    n.Initialize("default", Application.LabelName, "HIGH").SmallIcon(smiley)
                    n.Build(quot.Get("Comments") , "Kabojja Junior School", "tag", Me).Notify(9)
B4X:
main$ResumableSub_Processeventsresume (java line: 3081)
java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(pri=1 contentView=null vibrate=default sound=default defaults=0x7 flags=0x1 color=0x00000000 vis=PRIVATE)
    at android.app.NotificationManager.notifyAsUser(NotificationManager.java:306)
    at android.app.NotificationManager.notify(NotificationManager.java:284)
    at android.app.NotificationManager.notify(NotificationManager.java:268)
    at anywheresoftware.b4a.objects.NotificationWrapper.Notify(NotificationWrapper.java:281)
    at de.amberhome.slidemenuexample.main$ResumableSub_Processevents.resume(main.java:3081)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:245)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:185)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1154)
    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:6077)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(pri=1 contentView=null vibrate=default sound=default defaults=0x7 flags=0x1 color=0x00000000 vis=PRIVATE)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…