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.

upload_2019-11-6_13-14-24.png


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.
upload_2019-11-6_13-14-9.png


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