hello Everybody,
Anyone know where is the problem with this RaiseEvent?
PIECE OF LIBRARY CODE
public class mqtt implements MqttCallback {
@Hide
private BA objba;
@Hide
private String eventName;
public void Initialize(BA ba,String eventname)
{
objba = ba;
Log.d("B4A", "JAVA [Initialize] eventname = " + eventname);
if (ba.subExists(eventname + "_oninitialized"))
{
Log.d("B4A", "JAVA [Initialize] subExists = True");
objba.raiseEvent(objba, eventname + "_oninitialized");
}
else
{
Log.d("B4A", "JAVA [Initialize] subExists = False");
}
}
LOG (SHOWING THE EVENT EXIST IN B4A)
** Activity (main) Create, isFirst = true **
JAVA [Initialize] eventname = objmqtt
JAVA [Initialize] subExists = True
EVENT IN B4A (not fired by raiseevent)
Sub objmqtt_oninitialized()
Msgbox("[objMqtt_oninitialized]","MQTT")
End Sub
What I do wrong???? somebody help me!
thanks in advance
Alberto