R rkmoray Active Member Licensed User Longtime User Nov 10, 2011 #1 I am running sms in a service and it works(yay). I need to get the results (from,body) back to the mainwindow for processing. How can I some help on how to return the values form the service. Thanks
I am running sms in a service and it works(yay). I need to get the results (from,body) back to the mainwindow for processing. How can I some help on how to return the values form the service. Thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2011 #2 You can store the value in a process global variable and then fetch it from the activity. You can also call CallSub to call a sub in the activity. However it will only work if the activity is currently active. The best solution is to store the data in a process global variable and use CallSub to notify the activity. You should also read the data in Activity_Resume. This way, if the activity is currently paused the data will be handled when it resumes. Upvote 0
You can store the value in a process global variable and then fetch it from the activity. You can also call CallSub to call a sub in the activity. However it will only work if the activity is currently active. The best solution is to store the data in a process global variable and use CallSub to notify the activity. You should also read the data in Activity_Resume. This way, if the activity is currently paused the data will be handled when it resumes.
R rkmoray Active Member Licensed User Longtime User Nov 10, 2011 #3 Thanks I will try that tonight. Upvote 0