If I created a service, how do I get it to broadcast an intention every X seconds? I remember how a piece of code was shown along the lines
startThreadDelayed( new Thread() { public void run() { doStuff(); sendBroadcast(messageIntent); startThreadDelayed(this, 1000); } }, 1000);
Unfortunately, Iām not sure of either the class name or the exact method name, whatever the loop. Just the name will point me in the right direction of the search.
user1499731
source share