Try the attached code.
The problems in your code are:
- The images switch too fast. From what I have seen in the italian forum he wants 2 seconds between image switches.
Yes, I now, but it was only an example on how to catch the event
- Your code is an infinte loop, when you go back from the actQuiz Activity to Main Activity this one launches actQuiz again.
This is due to the fact that he wanted to start the animation automatically and I put the call in the Main Resume
A Timer is the solution not a loop !
I saw in your code:
Sub Activity_Pause (UserClosed As Boolean)
' Attention: UserClosed will be True even if orientation changes.
This is wrong !
UserClosed = False when the orientation is changed !
Yes, thank you, it is part of the template B4A, i forgot to remove it