ok, in on destroy im sending new Notification with different icon (ok
this wasnt obvious from the code I posted before):

final Notification notification = new Notification(icon, notify_title,
when);
//IM SURE THE ICON IS CHANGED

final PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
new Intent(), PendingIntent.FLAG_UPDATE_CURRENT);
notification.setLatestEventInfo(this, stopping_title, stopping_text,
contentIntent);
//        notification.flags = Notification.FLAG_ONLY_ALERT_ONCE |
Notification.FLAG_AUTO_CANCEL;

mNotificationManager.notify(SERVICE_STARTED_NOTIFICATION_ID,
notification);
//       mNotificationManager.cancelAll();

and I can see this new icon, but when I click on the notification when
I expand status bar it is not clearing itself :/
this is weird right?

-- 
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

Reply via email to