add toggling between front/rear camera

This commit is contained in:
tibbi
2016-04-19 13:02:52 +02:00
parent 22d2b16ab3
commit 6ce7b5e2e4
4 changed files with 109 additions and 24 deletions

View File

@@ -0,0 +1,11 @@
package com.simplemobiletools.camera;
import android.hardware.Camera;
public class Utils {
public static Camera.CameraInfo getCameraInfo(int cameraId) {
final Camera.CameraInfo info = new android.hardware.Camera.CameraInfo();
Camera.getCameraInfo(cameraId, info);
return info;
}
}