i need to let service sleep for 0.5 sec just as using Thread.sleep();
is there any method??
Yes there is. It's called SystemClock.sleep(millis). There's also Thread.sleep(millis). I suggest reading up on the differences.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With