So im trying to get a picture to constantly change
heres my codewhy doesnt this work
long curTime = System.currentTimeMillis();
if (curTime <= 1000)
{
setImage(image1);
}
if(curTime >= 1000){
setImage(image2);
}
if (curTime >= 2000){
curTime = 0;
}

