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.
精彩评论