Hello,
I've got one issue with Nexus5. I have one project with native access to camera. It works properly on SGS+ (Android 2.3.6), but id does not on Kitkat on Nexus 5.
I tried it also with OpenCV Sample - native-activity, and I receive the same error:
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Cameras: (null)
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Picture Sizes: 3264x2448,3200x2400,2592x1944,2048x1536,1920x1080,1600x1200,1280x960,1280x768,1280x720,1024x768,800x600,800x480,720x480,640x480,352x288,320x240,176x144
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Picture Formats: jpeg
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Preview Sizes: 1920x1080,1280x960,1280x768,1280x720,1024x768,800x600,800x480,720x480,640x480,352x288,320x240,176x144
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Preview Formats: yuv420p,yuv420sp,
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Preview Frame Rates: 15,24,30
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Thumbnail Sizes: 512x288,480x288,256x154,432x288,320x240,176x144,0x0
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Whitebalance Modes: auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight,twilight,shade
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Effects: none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Scene Modes: auto,landscape,snow,beach,sunset,night,portrait,sports,steadyphoto,candlelight,fireworks,party,night-portrait,theatre,action
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Focus Modes: infinity,auto,macro,continuous-video,continuous-picture
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Antibanding Options: off,60hz,50hz,auto
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Supported Flash Modes: off,auto,on,torch,red-eye
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): initCameraConnect: autofocus is set to mode "continuous-video"
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): initCameraConnect: preview format is set to yuv420sp
03-20 11:37:31.162: D/OpenCV_NativeCamera(3293): Starting preview
03-20 11:37:31.352: D/OpenCV_NativeCamera(3293): Preview started successfully
03-20 11:37:31.352: E/OpenCV::camera(3293): calling (*pGetPropertyC)(0x74ddef50, 2)
03-20 11:37:31.352: D/OpenCV_NativeCamera(3293): CameraHandler::getProperty(2)
03-20 11:37:31.352: D/OpenCV_NativeCamera(3293): CameraHandler::setProperty(0, 1280.000000)
03-20 11:37:31.352: D/OpenCV_NativeCamera(3293): CameraHandler::setProperty(1, 720.000000)
03-20 11:37:31.352: I/OCV:libnative_activity(3293): >>>>>Camera initialized at resolution 1280x720
03-20 11:37:31.352: D/OpenCV_NativeCamera(3293): CameraHandler::applyProperties()
03-20 11:37:41.362: E/OpenCV_NativeCamera(3293): applyProperties: failed setPreviewTexture call; camera might not work correctly
03-20 11:37:41.362: D/OpenCV_NativeCamera(3293): Starting preview
03-20 11:37:46.362: E/OpenCV_NativeCamera(3293): initCameraConnect: startPreview() fails. Closing camera connection...
Is there anything I can do with this?