reference to : https://segmentfault.com/a/1190000000404684

有时候我们需要设置一个alarmmanager事件
但是如果这个事件的时间是凌晨三点 我们不可能等到凌晨三点吧
adb中提供了查看alarmmanager的命令
adb shell dumpsys alarm
通过这命令可以查看被放到定时队列里面的事件

    RTC_WAKEUP #1: Alarm{52c2ad84 type 0 com.sina.weibo}
    type=0 when=+3m1s330ms repeatInterval=0 count=0
    operation=PendingIntent{529fa514: PendingIntentRecord{52a7b220 com.sina.weibo broadcastIntent}}

相关文章:

  • 2021-07-18
  • 2022-12-23
  • 2021-11-24
  • 2021-07-14
  • 2021-12-16
  • 2021-12-16
猜你喜欢
  • 2021-04-04
  • 2021-08-15
  • 2021-12-06
相关资源
相似解决方案