Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
If I've created a service, how do I get it to broadcast an intent every X seconds? I remember seeing a snippet of code along the lines
Unfortunatelly I'm not sure of either the class name, or the exact method name, for whatever is looping. Just a name would point me in the right direction of searching. | |||
you can use For Example
here running is a flag better keep it as volatile boolean. So that by changing it's value you can stop the repeatition. | ||||
You may consider using AlarmManager. By using it you can trigger any For example:
| |||
default
.
stackoverflow.comm
No comments:
Post a Comment