Hello to all,
I need to solve this synchronization problem:
when the fm_MessageArrived event intercepts the notification I have to fill a grid.
The problem is if the app is closed or in the background the app crash.
I use the CallSubDelayed to call the main method that fill the grid but obviously if the activity has not finished loading the app crash.
Now in the main method called i use this:
Do While Not (ApplicationIsReady)
Sleep (1000)
Loop
that works but I do not like it, is there a better method?
Thanks
I need to solve this synchronization problem:
when the fm_MessageArrived event intercepts the notification I have to fill a grid.
The problem is if the app is closed or in the background the app crash.
I use the CallSubDelayed to call the main method that fill the grid but obviously if the activity has not finished loading the app crash.
Now in the main method called i use this:
Do While Not (ApplicationIsReady)
Sleep (1000)
Loop
that works but I do not like it, is there a better method?
Thanks