Android using front facing camera to take a picture
问题 This is my first time using a camera. I've read a lot of examples and also the documentation, so I tried to make my own class to take pictures with the front facing camera. This is what I came up with: public class CameraController { private Context context; private boolean hasCamera; private Camera camera; private int cameraId; public CameraController(Context c){ context = c.getApplicationContext(); if(context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){ cameraId =