HI
this problems is, i calling third party jar by RunMethodJO,How to use javaobject by parameters? thanks !
this problems is, i calling third party jar by RunMethodJO,How to use javaobject by parameters? thanks !
B4X:
jave code:
Context useCtx = null;
useCtx = new Context();
Device usbDev = null;
usbDev = Device.search(useCtx, 1000, 200);
b4j code:
Dim useCtx As JavaObject
useCtx = useCtx .InitializeNewInstance("ch.ntb.inf.libusb.Context",Null)
Log("useCtx .IsInitialized:" & useCtx .IsInitialized)
Dim usbDev As JavaObject
usbDev.InitializeStatic("ch.ntb.inf.libusb.Device")
' this line is error
usbDev.RunMethodJO("search",Array (useCtx, 1000,200 ))
error message:
java.lang.reflect.InvocationTargetException