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 - Reclaim control of camera at runtime?

Reclaim control of camera at runtime?

All your problems with Audio, Video and Images.

Reclaim control of camera at runtime?

Postby underminedsk » Tue Apr 20, 2010 3:31 pm

Hey,

Sometimes, (especially when debugging) I get the following exception when trying to start up the camera:

W/System.err( 791): java.lang.RuntimeException: Fail to connect to camera service
W/System.err( 791): at android.hardware.Camera.native_setup(Native Method)
W/System.err( 791): at android.hardware.Camera.<init>(Camera.java:110)
W/System.err( 791): at android.hardware.Camera.open(Camera.java:90)
W/System.err( 791): at com.Alice.utilities.CustomCameraController$3.surfaceCreated(CustomCameraController.java:90)
W/System.err( 791): at android.view.SurfaceView.updateWindow(SurfaceView.java:454)
W/System.err( 791): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:287)
W/System.err( 791): at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
...

presumably this is because an old instance of my application crashed and didn't properly release the camera. The only solution I've found is to restart my phone (annoying!).

Does anyone know of a way to deal with this at runtime? It would be nice to do something like call Camera.release() and then try again, but the camera API does not support such a static method call.
underminedsk
Developer
Developer
 
Posts: 26
Joined: Tue Mar 02, 2010 3:36 am

Top

Return to Multimedia Problems

Who is online

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