Reputation: 2381
i need to let service sleep for 0.5 sec just as using Thread.sleep();
is there any method??
Upvotes: 20
Views: 19557
Reputation: 10327
Yes there is. It's called SystemClock.sleep(millis). There's also Thread.sleep(millis). I suggest reading up on the differences.
Upvotes: 21