title: Camera2 API Android min SDK
body: <p>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  <a href="https://web.archive.org/web/20201024223336/https://inducesmile.com/android/android-camera2-api-example-tutorial/" rel="nofollow noreferrer">tutorial</a></p>
  <p>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 ?</p>