Android Question Sleeping in a service ?


Active Member
Licensed User
Longtime User
Lately i was searching for a way to do sleep or wait on b4a
and i found an answer that said that android will kill or show not responding message for GUI activities when they sleep , that is why b5a does not have sleep function , and the only solution was using a timer.

i think that android doesn't show not responding message for services by default, you must enable it in developer options

I can't always use timers because timer is a lot different that sleep or wait
sleep continue the app after waiting the specified time.
but timer continue the app in the timer sub and does not return to the place where the timer was called

so is their is any way to wait in service other than timer ?