停止挂起的意图 [英] Stop pending intent
本文介绍了停止挂起的意图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个运行每5分钟一个服务
I have one service which is running every 5 minutes
所以,每5分钟服务启动,并做一些工作,然后完成并在5分钟后再次因为我已经把重复的间隔时间为5分钟,将启动
so every 5 minutes service is started and do some work and then finish and again after 5 minutes it will be started because i have set interval time of repeat to 5 minutes
现在,如果我想停止该服务,如果我不希望启动任何服务,更多的则是我必须做的?
Now if i want to stop that service and if i don't want to start service any more then what i have to do?
请帮帮我吗?
推荐答案
您应该亲热的 取消()
上的PendingIntent。
You should perfrom cancel()
on the pendingIntent.
这篇关于停止挂起的意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文