I'm working in a new project . send 3 SMS , but my account only can send one SMS by minute!!!
How can I get send the 3 SMS ? I have no problem to wait 1 minute delay between two SMS, but I have try with TimeUnit.SECONDS.sleep(60) OR TimeUnit.MINUTES.sleep(1); I will receive a Timeout error message and the listener stops.
Can someone help me with this?
If you want to pause then use java.util.concurrent.TimeUnit:
To sleep for one second or for 10 minutes