📜  android 前台服务设置自动取消不起作用 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:37.733000             🧑  作者: Mango

代码示例1
AutoCancel does not work when service is still on foreground. Try remove service from foreground:

startForeground(2, notification);
stopForeground(false); //false - do not remove generated notification