如果 android.hardware.Camera
是德precated,你不能使用变量摄像机
,然后这将是可以替代的?
if android.hardware.Camera
is deprecated and you cannot use the variable Camera
, then what would be the alternative to this?
按照 Android开发者指南为 android.hardware.Camera
,他们陈述:
我们建议使用新的android.hardware.camera2 API,用于新的应用程序。
We recommend using the new android.hardware.camera2 API for new applications.
在约 android.hardware.camera2
的信息页,(上面链接),它是说:
On the information page about android.hardware.camera2
, (linked above), it is stated:
该android.hardware.camera2包提供了一个接口来连接到Android设备单个摄像头的设备。 它取代pcated Camera类去$ P $。
The android.hardware.camera2 package provides an interface to individual camera devices connected to an Android device. It replaces the deprecated Camera class.