0

Notification我的Android 应用程序中有一个(丰富的) ,目前正在使用BigPictureStyle

显示的位图会不时更改,因此我需要更新通知,这没什么大不了的,但我不知道何时显示我的通知,因此不知道何时更新通知。

创建位图需要大量的性能,因此我不想做太多必要的事情。你有什么想法,我如何尽可能少地更新我的通知,但尽可能多地更新我的通知?

4

1 回答 1

0

Android does not allow to check whether the notification is shown or not. I too had the same problem.

What you can do is store the Date (in shared preferences) when its shown last time just before showing notification. Then check this date and find whether you need to show again or not.

于 2013-04-03T13:12:36.870 回答