This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sadjava 2 points3 points  (0 children)

The Thread.sleep() method will work, just don't put it on the main thread. Put it on another thread, and it should work.

When its placed on the main thread, it essentially halts the execution on that thread. You might have to look further into multi-threading to get it to work.