Hi @Erel, All.
To fetch values from inline JAVACODE and insert such as a label or in a variable.
Example i have this code in B4A:
and this return me more value ( loop in notifyMessage(ret)) that i see in Log window becuase i add into code BA.Log(value);
This Code Inline JavaCode:
The same value that i see in Log windows i have to get to insert themselves in a label.
Thank you
Marco
To fetch values from inline JAVACODE and insert such as a label or in a variable.
Example i have this code in B4A:
B4X:
...
Ritorno = jo2.RunMethod("Coffe",Array(1))
....
and this return me more value ( loop in notifyMessage(ret)) that i see in Log window becuase i add into code BA.Log(value);
This Code Inline JavaCode:
B4X:
......
public void handleMessage(Message msg) {
Bundle bundle = msg.getData();
if(bundle.containsKey(IrHandler.MSG_VERSION_STRING)) {
BA.Log("QUI");
String value = bundle.getString(IrHandler.MSG_VERSION_STRING);
BA.Log("QUI1");
BA.Log(value);
}
if(bundle.containsKey(IrHandler.MSG_SN_STRING)) {
String value = bundle.getString(IrHandler.MSG_SN_STRING);
BA.Log(value);
}
if(bundle.containsKey(IrHandler.MSG_BATTERY_INT)) {
int value = bundle.getInt(IrHandler.MSG_BATTERY_INT);
BA.Log("** Battery: " + String.format("%X", value));
}
.....
The same value that i see in Log windows i have to get to insert themselves in a label.
Thank you
Marco