[android-developers] Re: OutOfMemory problem

2010-04-21 Thread Kofa
I'm looking at this blog about Optimization, thanks patbenatar. The image it's 1920x1440 pixels, hope it helps. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: OutOfMemory problem

2010-04-21 Thread Kofa
the image it's 1920x1440 pixels On 18 abr, 17:59, Streets Of Boston flyingdutc...@gmail.com wrote: How big, in pixels, is the image? On Apr 18, 5:50 am, Kofa elk...@gmail.com wrote: I really don't know why it's giving me this error... I load an ImageView with an image of 692kb .jpg, using

[android-developers] Re: OutOfMemory problem

2010-04-21 Thread Streets Of Boston
1920p * 1440p * 2Bytes/p = 2764800*2 = 5529600 Bytes per image. That's a big chunk and only a one time leak could cause your memory issue. Track your code and see where you possibly cache the reference to this large Bitmap. Note that memory used by Bitmaps (the internal array of bytes) is not

[android-developers] Re: OutOfMemory problem

2010-04-19 Thread patbenatar
You say your error doesn't happen as often if you are plugged into your computer? Is that what you mean by VM? If so, that's likely because you're developing your code at the time and every time you run it on the device it kills and restarts your process.. leaving little time for memory leaks to

[android-developers] Re: OutOfMemory problem

2010-04-18 Thread Streets Of Boston
How big, in pixels, is the image? On Apr 18, 5:50 am, Kofa elk...@gmail.com wrote: I really don't know why it's giving me this error... I load an ImageView with an image of 692kb .jpg, using scroll options, so you can scroll it around... the strange it's that when the mobile it's connected to