Pin Notification to top of notification area

前端 未结 8 1733
有刺的猬
有刺的猬 2020-12-09 05:35

I have a Notification which is refreshed (i.e. sent) every three seconds. I\'ve set the FLAG_ONGOING_EVENT flag and the FLAG_NO_CLEAR flag so that is always shown. The probl

8条回答
  •  时光取名叫无心
    2020-12-09 05:51

    You shouldn't keep sending the notification. Just use the ongoing event flag, like you already have in your code. Other notifications may come in and obscure yours, but that's just the way Android works.

提交回复
热议问题