Android摄像头android.hardware.Camera德precated [英] Android camera android.hardware.Camera deprecated

查看:285
本文介绍了Android摄像头android.hardware.Camera德precated的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果 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 ,他们陈述:

我们建议使用新的<一个href="http://developer.android.com/reference/android/hardware/camera2/package-summary.html">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.

这篇关于Android摄像头android.hardware.Camera德precated的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆