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 - 1.6 crashes on taking photo

1.6 crashes on taking photo

All your problems with Audio, Video and Images.

1.6 crashes on taking photo

Postby Droid123 » Tue Jan 12, 2010 11:14 am

Hi all,

I need some help. I have an app that allows the user to take a picture (with MediaStore.ACTION_IMAGE_CAPTURE).
In onActivityResult, I extract the uri to the image that was taken (with uri = data.getdata())

This works properly on Android 1.5, but it crashes on 1.6 (and also 2.0). It seems that the picture was never taken and I get a nullpointerException on data.getdata() since it is null.
I'm testing on actual hardware (Hero for 1.5, G1 for 1.6, Milestone/Droid for 2.0) so it has nothing to do with the emulator.

Does anyone know what changed in 1.6???
I have included the permission android.permission.WRITE_EXTERNAL_STORAGE that is new in 1.6, anything else?
Droid123
Experienced Developer
Experienced Developer
 
Posts: 77
Joined: Sat Nov 21, 2009 1:21 pm

Top

Postby Droid123 » Tue Jan 12, 2010 1:41 pm

Ok so I solved it.

This thread was really helpful:

http://www.mail-archive.com/android-dev ... 70657.html

Apparently, the HTC Hero is "Special" when it comes down to the camera app. It returns an URI to the image location that it saves in a default location, whereas other phones don't.... seems like a bug in Android to me
Droid123
Experienced Developer
Experienced Developer
 
Posts: 77
Joined: Sat Nov 21, 2009 1:21 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 7 guests