if android.hardware.Camera is deprecated and you cannot use the variable Camera, then what would be the alternative to this?
我想构建一个应用程序,其中设备的前置摄像头用于将当前图像投影到a SurfaceView.到目前为止我找到的所有教程都是通过使用Cameraandroid.hardware包中的对象来实现的.
但是,这种方法似乎已被弃用.在Android文档之后尝试实现此功能的"新"首选方式时,我收到警告,它只能与API级别21一起使用,这是非常没用的.
所以我想知道目前在应用程序中实现相机功能的首选方法.或者是否有一些API级别低于21的支持库?
提前致谢.