- 전체
- 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
본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
댓글 0
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 5 |
[phonegap][cordova] [안드로이드] 코도바 앱(App) 개발 환경 세팅
| 졸리운_곰 | 2023.02.05 | 151 |
| 4 |
워드프레스와 모바일웹, 앱
| 졸리운_곰 | 2016.04.17 | 191 |
| 3 |
워드프레스 기반 안드로이드 앱 만들기
| 졸리운_곰 | 2016.04.17 | 522 |
| 2 |
JQuery Mobile 정리자료
| 졸리운_곰 | 2014.06.08 | 412 |
| 1 |
PhoneGap - 네비게이션 바 만들기
| 졸리운_곰 | 2014.05.29 | 845 |

