Use Timer in android mobile application, in java
Timer timer = new Timer(); timer.schedule(new TimerTask() { @Override public void run() { runOnUiThread(new Runnable(){ @Override public void run(){ // Write your code here } }); } }, 0, 1000);
Timer timer = new Timer(); timer.schedule(new TimerTask() { @Override public void run() { runOnUiThread(new Runnable(){ @Override public void run(){ // Write your code here } }); } }, 0, 1000);
No comments: