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
[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 - Out of memory exception with gallery

Out of memory exception with gallery

All your problems with Audio, Video and Images.

Out of memory exception with gallery

Postby AxAnd » Fri Apr 23, 2010 1:45 pm

Hi

I'm using gallery and imageswitcher to show images in, the adapter is a custom adapter called ImageAdapter, I want the users to choose the images in the gallery themselves either through an ACTION_GET_CONTENT intent or ACTION_IMAGE_CAPTURE intent. The intent are working fine and the images are put in the gallery widget, when I want to display the the first Image in the ImageSwitcher it show fine, when clicking the second image the application stops due to "Out of memory exception". The Log points to the line of code where I assign the image to the ImageSwitcher :
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. gallery.setOnItemClickListener(new OnItemClickListener()
  3.  
  4.         {
  5.  
  6.             public void onItemClick(AdapterView parent,
  7.  
  8.             View v, int position, long id)
  9.  
  10.             {    
  11.  
  12.                         //((ImageSwitcher)findViewById(R.id.switcher1)).destroyDrawingCache();
  13.  
  14.                         ((ImageSwitcher)findViewById(R.id.switcher1)).setImageURI((Uri)co.server.currRecord.image.get(position).get("data"));
  15.  
  16.                
  17.  
  18.             }
  19.  
  20.         });  
  21.  
  22.  
Parsed in 0.012 seconds, using GeSHi 1.0.8.4

As you can see I tried setting destroyDrawingCache() on the ImageSwitcher to free some resources but it didn't make any difference.

Surely this must be possible to to can any body help me ?

- Lars
AxAnd
Freshman
Freshman
 
Posts: 6
Joined: Thu Mar 18, 2010 9:38 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 8 guests