Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一项服务每 5 分钟运行一次
所以每 5 分钟服务启动并做一些工作,然后完成并在 5 分钟后再次启动,因为我已将重复的间隔时间设置为 5 分钟
现在,如果我想停止该服务并且不想再启动服务,那么我必须做什么?
请帮我?
您应该执行pendingIntent cancel()。
cancel()