I have this code inside a java activity that I am trying to wrap(Demo.java):
How do I amend this to accommodate it in the B4A wrapper? A bit lost here....
B4X:
static class MyHandler extends Handler {
WeakReference<Demo> outerClass;
MyHandler(Demo activity) {
outerClass = new WeakReference<Demo>(activity);
}
@Override
public void handleMessage(Message msg) {
Demo theClass = outerClass.get();
switch (msg.what) {
case 1:
theClass.pd.dismiss();
How do I amend this to accommodate it in the B4A wrapper? A bit lost here....