我使用很多方法来让一个 countdowns 计时器能在服务器中运行,但是总是失败,从来不能到达finish()部分。
那么android中服务器使用 countdowns有限制吗?
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(); //it never gets here!
}
}.start();
}
}
executemymethod();一直执行不到,但是也没有错误,怎么解决?