經安全檢測,此網站為安全網站,請放心前往原始網址!

How to pause / sleep thread or process in Android? - Stack Overflow

You probably don't want to do it that way. By putting an explicit sleep() in your button-clicked event handler, you would actually lock up the whole UI for a second. One alternative is to use some sort of single-shot Timer. Create a TimerTask to change th

stackoverflow.com

網址安全性掃描由 google 提供