[android-developers] Re: out of memory, VM won't let us allocate,.

2010-10-13 Thread n2v2rda2
ok,i will try On 10월13일, 오후1시31분, Kumar Bibek wrote: > Well, I would say, that System.gc() won't help you much. Since the purpose > of yours is to stream an image from the internet, the best approach would > probably be to write that stream into a file first. When that is done, you > can create a

Re: [android-developers] Re: out of memory, VM won't let us allocate,.

2010-10-12 Thread Kumar Bibek
Well, I would say, that System.gc() won't help you much. Since the purpose of yours is to stream an image from the internet, the best approach would probably be to write that stream into a file first. When that is done, you can create a Bitmap from this file. On Wed, Oct 13, 2010 at 9:32 AM, DanH

[android-developers] Re: out of memory, VM won't let us allocate,.

2010-10-12 Thread DanH
I'm guessing it has to do with the bitmap size here: > Out of memory: Heap Size=5639KB, Allocated=3134KB, Bitmap Size=18669KB The Android has a mysterious and troublesome bitmap caching scheme, and sometimes this requires the explicit issuance of "System.gc" calls, even though the Java book says t