I want to show a text on button for 3 seconds and after that change the button text with another word. how i can do this? i used these codes but just seen the second text.
public void TimePause ()
{
int Time_1 = (Calendar.getInstance()).get(Calendar.SECOND)+3;
while ( ((Calendar.getInstance()).get(Calendar.SECOND)) != Time_1 )
{
}
}
if (tasbihat==0)
{
//text one
counter.setText("word one");
checkPoint = 1;
EndViber.vibrate(500);
// pause
TimePause();
tasbihat = 33;
//text two
counter.setText("33");
swZekrtxt.setText("word two");
}