I had a (maybe) similar error when downloading a lot of files with
each being around 1-5MB of size. I was filling a ByteArrayBuffer with
bytes read from a BufferedInputStream of the http connection. This
lead of a OutOfMemory error after a couple of files on some devices. I
assume the gc wasn't freeing the allocated memory quickly enough.

I then changed the code to allocating a byte buffer with the needed
size in advance and reading the whole stream into that buffer at once.
This fixed it for me.
Peter

On Oct 24, 7:51 am, nandroid <[email protected]> wrote:
> Our app need download a lot of files. Current it works on Samsung
> Galaxy but always makes HTC incredible reset with a sad
> announcement"Droid".
>
> Does anybody know if HTC incredible has some limitation on network
> connections, downloading files/size, or memory leaking with
> downloading etc. issues?
>
> thanks,

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to