Getting OutOfMemory error while loading images from local file
data/data/mypackage/file
i am using these lines of code to get the files
fos = openFileInput(files[i]);
bitmap=BitmapFactory.decodeStream(fos);
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
regards





