[android-developers] Re: select pitcure may lead to excced memory and crash?

2009-10-11 Thread huanwu
it works perfect! thank you very much! On Oct 9, 2:08 am, Jarcikon jarci...@gmail.com wrote: Yes, the images from the camera are 2048px by 1536px.  If you convert to a bitmap, thats 2048 x 1536 x 2 = 6291456, or 6MB.  This is right at the allotted space an Activity gets.  If you can live with

[android-developers] Re: select pitcure may lead to excced memory and crash?

2009-10-08 Thread Jarcikon
Yes, the images from the camera are 2048px by 1536px. If you convert to a bitmap, thats 2048 x 1536 x 2 = 6291456, or 6MB. This is right at the allotted space an Activity gets. If you can live with smaller images, I would suggest using a sampleSize of 1 when decoding the image. This will