Well, that pissed me off. Is there a limit on countdown services?
I tried so many methods so that the countdown timer works in the service, but it always fails. It just never gets to the finish () part!
So is there a limit on services and countdowns? Please help me...
Here is the service:
public class ss extends IntentService { public ss() { super("ss"); } @Override protected void onHandleIntent(Intent intent) { new CountdownTimer(30000, 1000) { public void onTick(long millisUntilFinished) { } public void onFinish() { executemymethod();
As you can see, the code is simple and correct, but still executemymethod (); never executed! No errors ... Please give me a solution!
source share