B4J Code Snippet displayMessage & Tray App Icon

You can use displayMessage to show a task bar message as per below

B4X:
Dim jo As JavaObject = icon1
        jo.RunMethod("displayMessage",Array As Object("Success", "Changes pushed successfully", "INFO"))

However as you'll see below it says "OpenJDK Platform Binary" which is a bit unhelpful.



I found on Stack Overflow (https://stackoverflow.com/a/47851505) that if you set the icon to "NONE" then it will use your tray icon and not show the OpenJDK text.


B4X:
Dim jo As JavaObject = icon1
    jo.RunMethod("displayMessage",Array As Object("Success", "Changes pushed successfully", "NONE"))
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…