[Android] Delay handling using postDelayed method
If you want to give a delay and do something, use the postDelayed method of the Handler class.
The code below will be performed after 3 seconds.
Handler delayHandler = new Handler();
delayHandler.postDelayed(new Runnable() {
@Override
public void run() {
// TODO
}
}, 3000);
'기타 ETC > Android Studio' 카테고리의 다른 글
COVID19 TRACKER Android source code (0) | 2020.07.14 |
---|---|
안드로이드 뮤직플레이어 소스코드 (0) | 2020.07.13 |
[Android] youtube link open (0) | 2020.07.07 |
It is simpler when you have a lot of image buttons, and you don't want to write xml-s for every button. (0) | 2020.07.06 |
안드로이드 LinearLayout 오른쪽 정렬하기, 왼쪽 정렬하기 (0) | 2020.07.02 |