Pin Notification to top of notification area

前端 未结 8 1774
有刺的猬
有刺的猬 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:50

    Just a note for other people that run into this issue -

    Vaiden's answer fixed my issue where my ongoing notification kept jumping. It only happened to our app on ICS 4.0.3 for some reason, I think it's due to the fact that ICS handles notifications differently from the older versions. Also to note - on tablets, there are not "Ongoing" vs normal notification sections like on older versions (Gingerbread). The order is kept though, just not categorized. Not sure if it applies to phones on ICS.

提交回复
热议问题