B4J Library jSystemTray - Add icons to the system tray (notifications)

With this library you can add system tray icons and handle their events.

This is useful for applications that should run in the background and still allow the user to interact with.


Tray icons have two events: DoubleClick and MenuClick. The menu appears when the user right clicks on the icon.

Usually when the user closes the last form the process exits. The process will however keep running if there is at least one visible tray icon.

This library is an internal library now. If you don't see it in the IDE then you can download it here: https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/#post-441231


  • SystemTrayExample.zip
    1.6 KB · Views: 1,721
Last edited:


Well-Known Member
Licensed User
thanks, very easy to use. May I suggest adding a blink (or flash) tray icon option? that would be great to attract the user's attention.

Pascual Pérez

Licensed User
Erel, would it be possible to implement the event SingleClick? i use a tray icon as a toggle to hide/show a window. Thank you.


Well-Known Member
Licensed User
Mine appears on top