Open multiple cameras from Android application

128 views
Skip to first unread message

doina.c...@gmail.com

unread,
Oct 30, 2014, 8:14:01 AM10/30/14
to android...@googlegroups.com
Hello,

The CameraService from Android does not seem to support opening multiple camera devices simultaneously. I get the following error when I try to open the second one:

D/CameraService(24807): CameraService::connect E (pid 10592 "test.multicamera", id 1)
W/EDMNativeHelper(24807): EDMNativeHelperService is published
I/EDMNativeHelperService(25104): isCameraEnabled
W/System.err(10592): java.lang.RuntimeException: Fail to connect to camera service
W/System.err(10592):     at android.hardware.Camera.native_setup(Native Method)
W/System.err(10592):     at android.hardware.Camera.<init>(Camera.java:413)
W/System.err(10592):     at android.hardware.Camera.open(Camera.java:366)
...
Does anybody have a workaround for this issue?

Thanks,
Cristina
Reply all
Reply to author
Forward
0 new messages