开发者

LG optimus black android mobile front camera issue

开发者 https://www.devze.com 2023-04-02 09:41 出处:网络
i am using LG optimus black android mobile.I tried to use front camerausing parameters.set(\"camera-id\",2); but unable to access 开发者_运维问答front camera italways uses back camera.

i am using LG optimus black android mobile.I tried to use front camera using parameters.set("camera-id",2); but unable to access 开发者_运维问答front camera it always uses back camera. I am using android version 2.2. any ideas?


use Camera.open() and check CAMERA_FACING_FRONT to find the correct Camera to use.

On a side note, use the static variables, don't hard code them as ints.


try parameters.set("camera-sensor",2);

0

精彩评论

暂无评论...
验证码 换一张
取 消