Pin Notification to top of notification area

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

    You say your notification displays a list of currently running apps. Why do you resend the notification every 3 seconds? Why not resend the notification only when the list of apps has changed. This doesn't directly solve your problem, but it drastically reduces it.

提交回复
热议问题