Android postDelayed works but can't put it in a loop?
Sorry I am a noob I've read countless tutorials about making a simple timer and was wondering why it doesn't work until I noticed it is the while-loop causing the issue o.O I have removed it and then it works but only 1 time I need to use the loop though so the movement finishes :C Heres the code: old_x is the coordinate from an ImageView and new_x from the onTouch Event, maybe the problem because I am casting them as an int? I don't know what I need to do so it works please help O: while(old_x != new_x) { timedMoveIV(100); old_x = (int)img.getX(); } It calls this method which works if I do it