B4J Question Perform click

ThRuST

Well-Known Member
Licensed User
Longtime User
This code is for Android, but how to do this in B4J?

Usage
B4X:
SimulateClick(BtnTest1)

Code
B4X:
Public Sub SimulateClick(b As Button)
    Dim r As Reflector
    r.Target = b
    r.RunMethod("fire")
End Sub

Attached is the solution source code example. Thanks to Daestrum for the B4J solution.
 

Attachments

  • PerformClick.zip
    16.2 KB · Views: 258
Last edited:
Top