Get number of camera.
int numberofcamera = Camera.getNumberOfCameras(); Log.d("camera", "number = " + numberofcamera);
get CameraInfo and print the information.
for (int i = 0 ; i < numberofcamera;i++) { CameraInfo camerainfo = new Camera.CameraInfo(); Camera.getCameraInfo(i, camerainfo); Log.d("camera", "facing =" + camerainfo.facing); Log.d("camera", "orientation =" + camerainfo.orientation); }My Phone NexusOne has ... Cmaera is one. facing is 0, orientation is 90.
"facing = 0" means camera is agenst screen.
I need to research orientation.
source code here
0 件のコメント:
コメントを投稿