I have this code , and I want to run Log.d every 1000 milis , but It only run once .
seekView.postDelayed(new Runnable() {
public void run() {
Log.d("WWWW", "www");
}
}, 1000);
creating handler , timer , … only run once like this , where is my problem ?
To keep it running continuously at an interval of 1 second, you need to call postDelayed as nested in your Run method again. See the example below:
doing so will keep it calling it self at an interval of 1 second.