取消定时任务时,须保持定时任务的类型相同
PendingIntent.getService
使用时我是偷懒直接从上次的demo代码里直接复制过来的方法,结果取消那里一直不行
PendingIntent.getForegroundService
后来和创建处改为一致就OK了。
取消定时任务时,须保持定时任务的类型相同
PendingIntent.getService
使用时我是偷懒直接从上次的demo代码里直接复制过来的方法,结果取消那里一直不行
PendingIntent.getForegroundService
后来和创建处改为一致就OK了。