Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在android中创建了一个闹钟应用程序。问题是,当手机重新启动时,已经为前一个日期设置的闹钟正在显示。如何取消在当前日期之前设置的警报。
你用什么设置闹钟?如果您使用 AlarManager 来执行此操作,请尝试AlarmManager.cancel();