[英]How to call Alarm intent using CountDownTimer constructor?
I am trying to set the alarm using CountDownTimer. 我正在尝试使用CountDownTimer设置警报。 I have time in milliseconds.
我有毫秒的时间。 How to achieve it?
如何实现呢?
Any Help is appreciated and thanks in advance... 任何帮助表示赞赏,并在此先感谢...
CountDownTimer cntr_aCounter = new CountDownTimer(30000, 1000) {
public void onTick(long millisUntilFinished) {
}
public void onFinish() {
}};cntr_aCounter.start();
here i have 30 second countdown are set. 在这里,我有30秒的倒计时设置。 you can go ahead by this way.
您可以通过这种方式继续前进。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.