[android-developers] Setting Widget Icon Image on Widget Load

2010-10-21 Thread Benaiah
I am writing my first application and am trying to get my widget to load a different image when it is added to the home screen based on the state of the notification volume. It is detecting the notification state fine and the proper Toast messages appear when I add the widget, but I'm not getting

Re: [android-developers] Setting Widget Icon Image on Widget Load

2010-10-21 Thread YuviDroid
I'm not sure what's wrong with your code and I'm kind of guessing here...but: - onEnabled() is only called when the FIRST widget is created. So, if you try to add a second widget to the homescreen this method will not be called. Also, maybe, when onEnabled() is called the widget actually does not