Android Question Pause [wrong - to be deteled]

Filippo

Expert
Licensed User
Without DoEvents, that's magic! :D

Thank you LucaMs! :)
 

MarkusR

Well-Known Member
Licensed User
would not sleep(5000) the same?
 

Erel

Administrator
Staff member
Licensed User
Sleep can not allow to achieve the prefixed purpose:
That's true. However there isn't any other code that will allow it (without using the problematic DoEvents) as holding the main thread is a bad idea.

This thread should be deleted, as I wrote in the title (but this was ignored) as this is not a useful snippet.
I've moved it to the questions forum. I prefer not to delete complete discussions. This is indeed a common mistake. If I remember correctly I even talk about it in the video tutorial.
 
Top