I need help, I new to this and have been having trouble switching the image on a 'button' with another image after some time. I'm using AppInventor2 to do this
Asked
Active
Viewed 606 times
-1
-
Your question is not very clear. Please tell us your software environment, software version and etc. – Yu Zhang Oct 21 '15 at 02:01
1 Answers
0
Try using CountDownTimer:
long time = 5000; //in ms, if im not mistaken 1000 ms = 1 sec
new CountDownTimer(time, time) {
public void onFinish() {
mImageButton.setImageDrawable(R.drawable.my_image);
}
}.start();

Gershon Papi
- 5,008
- 3
- 24
- 50