Stop pending intent

杀马特。学长 韩版系。学妹 提交于 2020-01-16 13:19:50

问题


I have one service which is running every 5 minutes

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?

Please help me?


回答1:


You should perfrom cancel() on the pendingIntent.



来源:https://stackoverflow.com/questions/5754199/stop-pending-intent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!