1. Download our Official Android App: Forums for Android!

Apps Maximum allowed size (memory) for a widget?

Discussion in 'Android Development' started by bluemax, May 21, 2010.

  1. bluemax

    bluemax Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    9
    Joined:
    Mar 1, 2010

    Mar 1, 2010
    9
    7
    6
    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...