Hi everyone.... I have a service module (SMS receiver) and once I have the right data I need it to pass it the Main activity.
Code in the service module.
Code in the Main
Sorry if this is easy but I can't make it work.
Code in the service module.
B4X:
Sub ReceiverMobile(str As String)
CallSubDelayed2(Main,"MobileUpdate",str)
End Sub
Code in the Main
B4X:
Public Sub MobileUpdate(mbile As String)
Log("in the Main Activity ")
DBUtils.ExecuteMap(SQL, "Update profile set mobile = '"& mbile & "'",Null)
Log("Profile mobile updated! " & mbile)
End Sub
Sorry if this is easy but I can't make it work.
Last edited: