OutOfMemoryError while loading images from local file

All your problems with Audio, Video and Images.

OutOfMemoryError while loading images from local file

Postby valibab » Thu Jan 08, 2009 11:26 am

Getting OutOfMemory error while loading images from local file

i am using these lines of code to get the files


i am able to get upto images upto some extent like(15images) then for the next one the error rises

614400-byte external allocation too large for this process.
VM won't let us allocate 614400 bytes
xxxxxxxxxxxxxxxxxxxx allocPixelRef failed
Shutting down VM
thread exiting with uncaught exception (group=0x40010e28)
Uncaught handler: thread main exiting due to uncaught exception

java.lang.OutOfMemoryError: bitmap size exceeds VM budget

at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:304)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:328)

i am tring to do bitmap.recycle()
after getting images then i am facing error
java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@43462320

please help me to solve this problem

[mod]Please stop poisoning the forum with multiple threads about the same subject! LOCKED
Junior Developer
Junior Developer
Posts: 19
Joined: Sat Jan 03, 2009 7:11 am


Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 20 guests