I am trying to set up a situation where I am waiting for a small period of time say 3 seconds and move on. But if the user clicks my on-screen button then move on as I would have anyway. Both events will trigger the same behaviour namely to update text on the screen. Any thoughts??
New to Android but mclovin’ it
Thanks in advance
Try something like this:
It waits 3 seconds to continue but if the user touches the screen the thread is notified and it stops waiting.