I'm new to B4A. I need to use an external USB printer library for my program.
The external library has a constructor as follow:
public UsbController(android.app.Activity activity, android.os.Handler handler){...}
Therefor I created my own library wrapper defined as follow:
@ShortName("UsbController")
@Version(0.4F)
public class UsbControllerWrapper {
public UsbControllerWrapper() {...}
public void initialize(android.app.Activity activity, android.os.Handler handler){...}
...
}
Now, I've tried many things in B4A but could not get it to work :BangHead: . How do I create and pass the activity and handler parameters to initialize this external library? Please help.
Thanks.
The external library has a constructor as follow:
public UsbController(android.app.Activity activity, android.os.Handler handler){...}
Therefor I created my own library wrapper defined as follow:
@ShortName("UsbController")
@Version(0.4F)
public class UsbControllerWrapper {
public UsbControllerWrapper() {...}
public void initialize(android.app.Activity activity, android.os.Handler handler){...}
...
}
Now, I've tried many things in B4A but could not get it to work :BangHead: . How do I create and pass the activity and handler parameters to initialize this external library? Please help.
Thanks.