Maximum allowed size (memory) for a widget?


Last Updated:

  1. bluemax

    bluemax Member This Topic's Starter

    Joined:
    Mar 1, 2010
    Messages:
    9
    Likes Received:
    7
    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?
     

    Advertisement

Share This Page

Loading...