摄像机2 API - 机器人机器人、摄像机、API

由网友(后退的风景)分享简介:我想使用的摄像机2所提供的Andr​​oid新相机API。但I am trying to use new camera api provided by android as camera2. But CameraManager manager = (CameraManager) getActivity().getS...

我想使用的摄像机2所提供的Andr​​oid新相机API。但

I am trying to use new camera api provided by android as camera2. But

CameraManager manager = (CameraManager) getActivity().getSystemService(Context.CAMERA_SERVICE);

示值误差。没有任何一个有过这个API。

showing error. Does any one have worked on this api.

一直在寻找结果找不到任何的事情呢。

Have been searching for results for could not find any thing yet.

推荐答案

Binod,

这只会工作,如果你的平台支持的API级别21 - 这是一个来了大号的Andr​​oid发布后

That will only works if your platform support API level 21 - that is the one come after Android L release.

有关如何相机2 API的工作,你可能想的看看这篇文章

For a detailed explanation of how camera 2 API works, you may want to take a look at this article

阅读全文

相关推荐

最新文章