Get CameraId from Camera object in android -


i developing on nexus 7 has front-facing camera. thus, of default camera-related retrievals fail try return information first back-facing camera. know whether possible retrieve camera id retrieved camera object?

please, understand not want iterate on list of cameras in order match 1 current camera. also, did retrieve camera using method didn't need persist id of camera.

in 1 of classes, separate camera acquisition class, trying hold of camcorder's profile. invoke camcorderprofile.get(camcorderprofile.high_quality); documentation states get(int quality):

returns camcorder profile first back-facing camera on device @ given quality level. if device has no back-facing camera, returns null.

thus, need cameraid open (front-facing) camera.

thanks help!


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -