The issue here is marshalling bitmap data from your widget process into the launcher process. If you load the bitmap in your process, and specify as a drawable in RemoteViews, then its actual bytes will need to be marshalled into the launcher process. This is not efficient. It's better to specify your drawables as a resource id.
Updating every second is kind of questionable, it will eat through the battery pretty fast. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 01.10.2010 16:21 пользователь "siliconeagle" <[email protected]> написал: I am writing a clock widget that uses customised bitmaps (so the widget loads the bitmap from the sdcard) Just have a couple of questions regarding how updates work: 1. if i want to display seconds on the clock widget will the widget load the bitmaps off the disk every second or can they be cached somehow so it doesn't reload off the disk each time. or If it does reload a bitmap each second, would this use a lot of power? 2. If i load the customised number bitmaps into a static array and then pass them as bitmaps to the widget would this use less power than just loading off the SD card? best regards, rob -- 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]<android-developers%[email protected]> For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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

