startForeground是否使用相同的ID更新旧通知?

时间:2016-03-22 19:48:37

标签: android service notifications overwrite

当我第一次呼叫startForeground(NOTIFY_ID, notification)(从服务中调用)时,一切正常。

稍后我想更新Notification的一些视图,然后再次调用startForeground,希望这只会因为ID而覆盖/更新旧的Notification。但随后通知转向:

enter image description here

通知似乎是空的,只是浮动在所有其他通知上。换句话说:通知只是搞砸了。

我的问题是:startForeground甚至更新旧通知吗?

0 个答案:

没有答案