i need to let service sleep for 0.5 sec just as using Thread.sleep();
is there any method??
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.