Hello,Change your code to:
B4X:Sub Beep Dim jo As JavaObject = Me jo.RunMethod("beep", Null) End Sub #if Java public static void beep() { java.awt.Toolkit.getDefaultToolkit().beep(); } #End If
I used exactly the published code inside a CustomView (XUI) class. The code works but there is not sound. Why?