, Textview 5 .
Step 1:
First, you simply create one saperate method, where Textview Update, as shown below.
private void updateTextView(){
}
Step 2
Declare an object of the Runnable class, which is the Just Call updateTextview method after a certain time.
Runnable run = new Runnable() {
@Override
public void run() {
updateTextView();
}
};
Step 3
you can run this runnable using the following code.
YOUR_TEXTVIEW.postDelayed(run,5000);
I hope you understand my idea.
Best of luck
source
share