Android Question Passing parameters for a Java call

EduardoElias

Well-Known Member
Licensed User
Longtime User
HI there I have the following Java code that I need to call, in a SDK

B4X:
        dSDK.setPinPadKeyboard((Button) layoutPinpad.findViewById(R.id.button1),
                (Button) layoutPinpad.findViewById(R.id.button2),
                (Button) layoutPinpad.findViewById(R.id.button3),
                (Button) layoutPinpad.findViewById(R.id.button4),
                (Button) layoutPinpad.findViewById(R.id.button5),
                (Button) layoutPinpad.findViewById(R.id.button6),
                (Button) layoutPinpad.findViewById(R.id.button7),
                (Button) layoutPinpad.findViewById(R.id.button8),
                (Button) layoutPinpad.findViewById(R.id.button9),
                (Button) layoutPinpad.findViewById(R.id.button0),
                (Button) layoutPinpad.findViewById(R.id.buttonCancel),
                (Button) layoutPinpad.findViewById(R.id.buttonConfirm),
                (Button) layoutPinpad.findViewById(R.id.buttonClear),
                this);

This is part of a complete JAVA app that uses that "dSDK.setPinPadKeyboard"

I am going to call from the B4A code a function:

public void onSetKeyboard() {}

where i need to run something like this:

sdk.RunMethod("setPinPadKeyboard", Array( <buttons> ))

So, I need to pass buttons from my interface so that the SDK can intercept... it is part of a payment security system.

How should I do that?
 

teddybear

Well-Known Member
Licensed User
Looks right, anything happened?
 
Upvote 0
Top