Custom icon on notification

by Wesley » Wed, 11 Mar 2009 02:51:24 GMT


Sponsored Links
 Is it possible to display a custom icon (i.e., an icon which is a
application resource) on a notification ?
For sounds you can pass a Uri which makes possible to play custom
sounds when notifying, but for the icon you only pass the resource id
when creating the Notification object, which as I understand makes
possible only to display the system icons (i.e., those on android.R).



--~--~---------~--~----~------------~-------~--~----~



Custom icon on notification

by Zero » Wed, 11 Mar 2009 06:42:29 GMT


 resource id can be any id from your project as well. should work just
fine.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Custom icon on notification

by Wesley » Thu, 12 Mar 2009 04:50:00 GMT


 So, are the resource ids unique across all applications on the phone ?
What about new applications being downloaded, how would this work ?





--~--~---------~--~----~------------~-------~--~----~



Custom icon on notification

by MrSnowflake » Thu, 12 Mar 2009 05:31:29 GMT


 

Probably not, but does it matter? The NotificationManager probably
gets the drawable from the context it got called and used from.

Well, you shouldn't care for it :) The system does that for you.



--~--~---------~--~----~------------~-------~--~----~