in the below code send() function is executing many times in a second,i want to execute send() once in a second,how i change the code
timer.scheduleAtFixedRa
an easier approach would look like this:
new Thread() { public void run() { while(true) { send(); try{ Thread.sleep(1000); // pauses for 1 second catch(Exception e) {} } } }.start();