I am working on a very simple card WAR game APP, and i wanted to display on a textview (3,2,1 -> WAR!). I've tried this method:
public void doCounting(){
for(int i=3;i>=0;i--)
{
if(i!=0){
waitTv.setText("Wait "+i);
SystemClock.sleep(1000);
}else{
waitTv.setText("WAR!");
}
}
}
It didnt worked it just make my app stuck for three seconds then enters the activity and place "WAR!" in the textView..