tags:

views:

43

answers:

1

i need to let service sleep for 0.5 sec just as using Thread.sleep();

is there any method??

+2  A: 

Yes there is. It's called SystemClock.sleep(millis). There's also Thread.sleep(millis). I suggest reading up on the differences.

colithium