I am making an app and i want to add time delay to my code to make to delay an action . Is there something that you can set the delay in millis ? Please help.
I want to do something like :
for(int i=1;i<100;i++){
Delay(1000); // I want to add a delay so that this wont happend instanlty
Matrix matrix=new Matrix();
matrix.postRotate((float) angle2,width, height);
image.setImageMatrix(matrix);
Calling Thread.sleep() is causing ANR Is there something like the timers in Visual Basic in android ? Timer in vb is an element that runs seperatly from the main program an causes an event whose frequency is set by user.