Apps Maximum allowed size (memory) for a widget?


I am experimenting with a widget which has around 1 MB of images in its drawable folder. Not all images are used at the same time; they are different skins for the widget.

Sometimes, when I attempt to change skin/layout while running, I get java.lang.OutOfMemoryError: bitmap size exceeds VM budget for home process.

I guess that the cause is my widget; is there any recommended maximum size for widget's bitmaps, or drawable folder? Is it all loaded with widget, or only bitmaps currently used?