Thread threadDismiss = new Thread(new Runnable() {
@Override
public void run() {
Intent dismiss = new Intent(AlarmClock.ACTION_DISMISS_ALARM);
dismiss.putExtra(AlarmClock.EXTRA_ALARM_SEARCH_MODE,AlarmClock.ALARM_SEARCH_MODE_NEXT);
startActivity(dismiss);
}
});
你好,我试图解除手机上的下一个闹钟。 但是当我用start()开始我的threadDismiss时。警报不会被解雇,我会重定向到警报UI。
如何使用AlarmClock.ACTION_DISMISS_ALARM解除警报?