12-01-2008 06:23 AM
I'm programming an aplication that needs to store three images on persistent memory after downloading via HTTP. The images are relatively small png files 32x32 created as Bitmaps and then stored as ARGB int[].
When grouping images with the following code:
ObjectGroup.createGroup(image);
It throws an ObjectGroupTooBigException with certain images. It only happens with devices, while all goes fine in simulator. According to javadoc, this only occurs if the total size of the group exceeds 64 KB.
Testing it with three similar images (32x32 pixels, 1.37 KB) the exception is not thrown. Then I try replacing one of the images with a bigger one (64x32, but 1.33 KB, less size than others) and the exception is thrown. Testing it with bigger images gives the same result.
I have tested it with several models, including recent devices like Bold.
I can't explain why this happens since the total size of the images is far from 64 KB limit.
12-01-2008 06:43 AM
12-01-2008 08:03 AM
12-03-2008 05:11 PM