Hello I am trying to develop an application that uses a custom Camera, when I try to use the Camera class it was deprecated so I have used android hardware. Camera 2 and followed this tutorial
but when I try to add CameraDevice.StatecCallBack it gives me a warning that the min SDK should be 21 and my min SDK is 15 Now I'm confused if I used the old Camera API its deprecated if i used the new one it doesn't support my min SDK what should I do ?