Android Camera2示例
我正试图找到一个android的相机样本,因为我想搞乱它,看看我能做些什么。我正在使用“导入android代码示例”中的示例代码并使用Camera2。我有点明白它是如何工作的,但是我想在我的手机上试试,android 4.4和5.0是唯一需要的版本。最小sdk为5.0,如果更改,则错误为`错误:任务的执行失败:应用程序:processDebugTestManifest manifmerger.manifmerger.manifmerger2$MergeFailureException:org.xml.sax.SAXParseException;行号:20;列数:10;不允许处理指令目标与“[xX][mM][lL]”匹配` 错误是这样的,它说“声明必须继续所有文档内容” 它还表示无法解析Camera2Base的符号Android Camera2示例,android,android-camera,Android,Android Camera,我正试图找到一个android的相机样本,因为我想搞乱它,看看我能做些什么。我正在使用“导入android代码示例”中的示例代码并使用Camera2。我有点明白它是如何工作的,但是我想在我的手机上试试,android 4.4和5.0是唯一需要的版本。最小sdk为5.0,如果更改,则错误为`错误:任务的执行失败:应用程序:processDebugTestManifest manifmerger.manifmerger.manifmerger2$MergeFailureException:org.x
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.example.android.camera2basic"
android:label="Tests for com.example.android.camera2basic" />
根据Apache许可证2.0版(“许可证”)获得许可;
除非遵守许可证,否则不得使用此文件。
您可以通过以下方式获得许可证副本:
http://www.apache.org/licenses/LICENSE-2.0
除非适用法律要求或书面同意,软件
根据许可证进行的分发是按“原样”进行分发的,
无任何明示或暗示的保证或条件。
请参阅许可证以了解管理权限和权限的特定语言
许可证下的限制。
-->
所以我的问题是,有没有一种方法可以让不仅仅是lollop访问它?或者有没有另外一个示例代码,我可以用它来玩和摆弄在Android 5.0之前,camera2 API不存在,所以你不能在运行Android 4.4的设备上使用它 您可以在此处按照旧相机API的API指南进行操作:
如果还有帮助的话。我想做的就是在屏幕上显示相机看到的东西。不会拍照。