Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - OutOfMemoryError while loading images from local file

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
data/data/mypackage/file

i am using these lines of code to get the files

bitmap=BitmapFactory.decodefile(/data/data/mypackage/files/filename);

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

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

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Exabot [Bot] and 5 guests