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

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 - discripencies while compressing a bitmap on Google nexus

discripencies while compressing a bitmap on Google nexus

All your problems with Audio, Video and Images.

discripencies while compressing a bitmap on Google nexus

Postby mudit.agar » Sat Jun 19, 2010 3:22 pm

Hi all,

I am compressing a bitmap object to OutputStream using "Compress" function. Here is my code:
Code: Select all
    try {
                  if (bitmap != null) {
                     bitmap.compress(Bitmap.CompressFormat.JPEG, 100,
                           bytes);
                  } else {
                     Message message = handler.obtainMessage(1, "false");
                     handler.sendMessage(message);
                     return;
                  }
               } catch (OutOfMemoryError oom) {
                  System.gc();
                  Message message=handler.obtainMessage(1,"false");
                  handler.sendMessage(message);
                  return;
               } catch (NullPointerException npe) {
                  System.gc();
                  Message message = handler.obtainMessage(1, "false");
                  handler.sendMessage(message);
                  return;
               } catch (Exception e) {
                  System.gc();
                  Message message = handler.obtainMessage(1, "false");
                  handler.sendMessage(message);
                  return;
               }


when i am running this code on G1 and hero, i am getting a proper output stream( which i later save to a image file on sdcard). But when i test this code on Google nexus, i am getting a blurry image after converting the output stream in an image file.


FYI

OS: Android 1.5;
G1 and Hero are on 1.5 OS and nexus is on 2.0


Please help.. is there a known issue in nexus?? or am i doing something wrong??
mudit.agar
Freshman
Freshman
 
Posts: 9
Joined: Tue Jun 16, 2009 11:41 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 8 guests