I am trying to solve this problem:
Tha b4A code is as follows:
the #JAVA code is
I create this buttons manually using clsFLoatingWindows in a panel to simulate a virtual numeric pinpad
I have the B4A button and I am aware that it is a wrapper.... However I need to pass the Java Button to be used
Tried to use button directly when using RunMethod but it does not match the calling signature in JAVA, so I changed to .parent but it is causing the library (3rd party) to crash
How can I do that?
Tha b4A code is as follows:
B4X:
Sub SetupPinpad(bt1 As Button, bt2 As Button, bt3 As Button, bt4 As Button, bt5 As Button, bt6 As Button, bt7 As Button, bt8 As Button, bt9 As Button, bt0 As Button, btCancel As Button, btConfirm As Button, btClear As Button, act As Activity)
LogColor("yNexu.SetupPinpad", Colors.Green)
nexupayment.RunMethod("SetupPinpad", Array(bt1.Parent, bt2.Parent, bt3.Parent, bt4.Parent, bt5.Parent, bt6.Parent, bt7.Parent, bt8.Parent, bt9.Parent, bt0.Parent, btCancel.Parent, btConfirm.Parent, btClear.Parent))
End Sub
the #JAVA code is
B4X:
public void SetupPinpad(Button bt1, Button bt2, Button bt3, Button bt4, Button bt5, Button bt6, Button bt7, Button bt8, Button bt9, Button bt0, Button btCancel, Button btConfirm, Button btClear) {
BA.Log("Transaction.SetupPinpad");
destaxaSDK.setPinPadKeyboard(bt1, bt2, bt3, bt4, bt5, bt6, bt7, bt8, bt9, bt0, btCancel, btConfirm, btClear, ba.activity);
}
I create this buttons manually using clsFLoatingWindows in a panel to simulate a virtual numeric pinpad
I have the B4A button and I am aware that it is a wrapper.... However I need to pass the Java Button to be used
Tried to use button directly when using RunMethod but it does not match the calling signature in JAVA, so I changed to .parent but it is causing the library (3rd party) to crash
How can I do that?
Last edited: