简体   繁体   English

Android Studio中的相机

[英]Camera in Android Studio

I try to do this project in Android Studio: http://android-er.blogspot.ch/2010/12/camera-preview-on-surfaceview.html 我尝试在Android Studio中执行此项目: http : //android-er.blogspot.ch/2010/12/camera-preview-on-surfaceview.html

I also tried to code some own projects. 我还尝试编写一些自己的项目。 But there is always the same problem. 但是总会有同样的问题。 My camera-object is always strikethrough. 我的相机对象始终是删除线。 The information is: this inspection reports where deprecated code is used in the specified inspection scope camera Picture: http://imgur.com/CgELErm 信息是: 该检查报告在指定检查范围的摄像机中使用了不推荐使用的代码的图片: http : //imgur.com/CgELErm

Ideas on how to find the solution for this? 关于如何找到解决方案的想法?

The new Camera2 API is recommended these days. 最近建议使用新的Camera2 API。 Unfortunately, most active devices don't support it, and never will receive a software upgrade to fix that. 不幸的是,大多数活动设备都不支持它,也永远不会收到软件升级来修复该问题。 So, unless you are targeting newest devices, or very specific devices you can test, you are stuck with the deprecated API. 因此,除非您以最新的设备为目标,或者可以测试的设备非常特定,否则您将被弃用不推荐使用的API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM