问题
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