On HoneyComb, posting a Notification with the same id as an already-
posted Notification does not produce an immediate visual update.
For example, on GingerBread, everytime this code is invoked:
PendingIntent pi = PendingIntent.getActivity(this, 0,
notificationIntent, 0);
mNotification.when = System.currentTimeMillis();
mNotification.flags = Notification.FLAG_ONGOING_EVENT;
mNotification.icon = getNotificationResource();
mNotification.tickerText = tickerText;
mNotification.setLatestEventInfo(this,
res.getString(R.string.app_name), contentString, pi);
mNotificationMgr.notify(mId, mNotification);
The notification bar would get updated immediately. On HoneyComb, each
notification will always take a fixed duration of about 3seconds, even
if a subsequent notification is posted immediately afterwards. How do
I change this behavior to be consistent with older Android versions?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en