Is there any way to pause an activity for a brief period of time? What I want to do is implement a "Loading..." splash screen which updates the "Loading" bar at regular intervals.
What I've seen so far is wait(millis) and Thread.sleep(millis).
The former gives terrible runtime errors and the latter puts even the monitor to sleep for that duration, hence defeating the purpose of using the sleep() altogether.
I basically want the app to freeze in it's current state for a few seconds.
Thanks in advance
What I've seen so far is wait(millis) and Thread.sleep(millis).
The former gives terrible runtime errors and the latter puts even the monitor to sleep for that duration, hence defeating the purpose of using the sleep() altogether.
I basically want the app to freeze in it's current state for a few seconds.
Thanks in advance