Hey Kevin,

Thanks for the response. The icon I'm trying to update would be a
placeholder image that I would store in the resources of my
application. I was hoping I would be able to change this within my
program based on certain conditions and have the status bar reflect
the changes when the icon gets updated. (i.e. Say you wanted to keep
an icon of the current temperature in the titlebar and be able to
change that icon in your resources with new text as the temperature
changes.) I know you can customize the view for the window shade but
I'd like to be able to change the actual icon that displays in the
status bar. Notifications only take a drawable resource so I wouldn't
be able to use setImageResource(int resource id) to change that. Would
this be possible at all?

Thanks,
Kyle

On Oct 27, 9:09 am, cyntacks <[EMAIL PROTECTED]> wrote:
> Hi Kyle,
>
> Where does the icon "live" that you are trying to update? Is it inside
> of your app, or is it on the Android home screen? From what I can
> gather the SDK does not allow one to update the icon on the home
> screen during runtime (at least that is what I read here on the board
> when attempting to do that), instead you have to use the notification
> layer and post a message to the title bar.
>
> On the other hand, if you are attempting to change an image/icon
> inside of the app, this is pretty standard. Just grab the current
> ImageButton and call .setImageResource(int resource id). Now, if you
> are getting fancy and just adding a "badge" or something, it will be
> slightly more complicate, but this should get you up in the right
> direction. Take a look at the draw() methods as well....
>
> Does that help?
>
> Kevin
>
> On Oct 26, 12:20 pm, Kyle <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I'm trying to find a way to programmatically change a drawable
> > resource within my application so that I can display this updated icon
> > as a notification. Would this be possible? If not is there another way
> > to go about doing something like this? I figured a notification object
> > might be able to take a bitmap or drawable but it looks like you can
> > only pass a resource id.
>
> > Thanks for any help.
> > Kyle
--~--~---------~--~----~------------~-------~--~----~
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