开发者

Does cancelling a Foreground Service's notification pull the service out of the foreground?

I understand that the newer Android APIs require you to start an ongoing notification when the foreground service is running to alert the user that something is running.

My users are asking for a way to override this default behavior and hide the notification anyway (understandably).

If I hold a reference to the notification and cancel it after I call startForegr开发者_StackOverflow社区ound(..), will Android pull the service out of the foreground?


No. There is unfortunately no way around this.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜