- 전체
- android studio
- Android SDK
- Android NDK
- Android ADK
- Android Etc. Lib.
- Android dalvik VM
- Android 보안
- PhoneGap
- AOSP 개발
- MIT App Inventor 2
- kivy (python)
- ionic framework
- Kotlin (코틀린)
- React Native
Android SDK [Android SDK] How to implement Do nothing for a certain period of time in Android
2024.05.01 16:43
[Android SDK] How to implement Do nothing for a certain period of time in Android
You can use the Timer. it allows you to call a method on a specific interval.And your app will be responsive if you use this in the meantime. Or you can use Thread.sleep() if you wish to do nothing for a certain period of time.
For your task, You can start a Timer once the TextView is initiated and check its value once the timer is done.
int delay = 5000;// in ms
Timer timer = new Timer();
timer.schedule( new TimerTask(){
public void run() {
//check the TextView value
}
}, delay);
[출처] https://stackoverflow.com/questions/75658390/how-to-implement-do-nothing-for-a-certain-period-of-time-in-android
본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.

