Hi I can not get my test app to call RefreshData in main activity when I get the expeted SMS.
The app will show the main activity but not execute RefreshData.
Am I doing something wrong with callsub?
Mogens
The app will show the main activity but not execute RefreshData.
Am I doing something wrong with callsub?
B4X:
Sub smsint_MessageReceived (From As String, Body As String) As Boolean
If From = "+45XXXXXXXX" Then
ToastMessageShow(From & " - " & Body, True)
Main.SMSNumber = From
Main.SMSBody = Body
StartActivity(Main)
CallSub(Main, "RefreshData")
Return True
End If
End Sub
Mogens