I was thinkig on it a bit and didn't fully get
when we must use SubCallDelayed.
Is it when a modal dialog is used
inside any event handling like:
Activity_KeyPress, Activity_Resume and also myButton_Click, myTimer_Tick etc.?
Priit
Edit:
Found this:
"Starting from Android 4.3 it is not possible to show a modal dialog inside the KeyPress or KeyUp events, with one exception which is in the case of the Back key.
If you need to show a modal dialog for other keys then you should call a sub with CallSubDelayed and show the modal dialog in that sub."
So, it looks like button, timer etc events do not need CallSubDeleyed.
when we must use SubCallDelayed.
Is it when a modal dialog is used
inside any event handling like:
Activity_KeyPress, Activity_Resume and also myButton_Click, myTimer_Tick etc.?
Priit
Edit:
Found this:
"Starting from Android 4.3 it is not possible to show a modal dialog inside the KeyPress or KeyUp events, with one exception which is in the case of the Back key.
If you need to show a modal dialog for other keys then you should call a sub with CallSubDelayed and show the modal dialog in that sub."
So, it looks like button, timer etc events do not need CallSubDeleyed.
Last edited: