I'm trying to use a simple NB6 class notification. I am placing the notification in a service that is started by "GUI" activity. n.Build returns a notification.
B4X:
Dim BM As Bitmap = LoadBitmapResize(File.DirAssets, "icon.png", 24dip, 24dip, False)
Dim n As NB6
n.Initialize("default", Application.LabelName, "LOW").AutoCancel(False).SmallIcon(BM)
n.Build("Title", "Content", "tag1", GUI).Notify(4)
' Getting "Cannot assign void value." error on the following line
Service.AutomaticForegroundNotification = n.Build("Title", "Content", "tag1", GUI).Notify(4)
Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_ALWAYS