开发者

Stop pending intent

开发者 https://www.devze.com 2023-02-28 05:41 出处:网络
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 ti

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?


You should perfrom cancel() on the pendingIntent.

0

精彩评论

暂无评论...
验证码 换一张
取 消