It’s OK to use as in it will not create blockages etc. The android infrastructure is however not expected to reliably schedule the continuation. Animation this way will be very stuttering.
A better idea of animation is often to take another approach. As long as you’re animating you invalidate the drawing as part of your
onDraw. Then in your
onDraw measure the time elapsed since the start of the animation. You position/adapt the elements according to this elapsed time so that even if a frame is dropped your animation is always at the right point, stutters less and automatically adapts to the framerate of the device.