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


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.


Other Threads

1. cyclic "android.process.acore" failure (1.0r2 and 1.1r1)

Could you please post a full stack crawl?  A binary that does this in a bug
report would also be really nice.

It looks like the label in your app has something funky about it that is
crashing in the text code, but there isn't enough here to really tell

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


2. Why different behaviour when exiting app using BACK and HOME ?

The default behavior of the back key is to exit your activity by
calling finish() (which should pop to the next activity in the
activity stack of the task your activity was in, or to another task if
your activity was at the bottom of its task). You can override that.

The behavior of the home key is to switch to the home application, but
your activity doesn't exit.


Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further


3. Why different behaviour when exiting app using BACK and HOME ?

4. What's slow on Android?

5. HTML login form works in Android browser and fails with WebView - Android bug ?

6. Is ADP1 still available for purchase by developers ?

7. EVIL SPAM Interested CRM on Android ?