notification 등록할 떄 id라는게 있을 겁니다.
그 값을 동일하게 주면 내용만 업데이트 됩니다.
아래 API 설명을 읽어보세여 동일한 tag와 id를 가지고 있는 노티가 이미 떠있는 상태에서 cancel 하지 않았다면
그것은 새로운 정보로 업데이트 될 것이다
public void notify (String tag, int id, Notification notification)
Post a notification to be shown in the status bar. If a notification with the same tag and id has already been posted by your application and has not yet been canceled, it will be replaced by the updated information.
Parameters
tag |
A string identifier for this notification. May be null . |
id |
An identifier for this notification. The pair (tag, id) must be unique within your application. |
notification |
A Notification object describing what to show the user. Must not be null. |