首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android Camera2示例

Android Camera2示例
EN

Stack Overflow用户
提问于 2015-02-19 06:29:41
回答 1查看 6.1K关注 0票数 1

我正试图为android系统找到一个相机样本,因为我很想把它弄乱,看看我能做些什么。我正在使用“导入android代码示例”中的示例代码,并使用Camera2。我有点了解它的工作原理,但是我想在我的手机上试用它,它是Android4.4,5.0是唯一需要的版本。最小sdk为5.0,如果更改错误为。“错误:任务执行失败”:Application:processDebugTestManifest‘。

com.android.manifmerger.ManifestMerger2$MergeFailureException: org.xml.sax.SAXParseException;lineNumber: 20;columnNumber: 10;未指定匹配"xXlL“的处理指令目标。

错误是这个,它说“声明必须处理所有文档内容”,它还说不能解析camera2basic的符号。

代码语言:javascript
复制
 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" />

那么,我的问题是,是否有一种方法可以使它不仅仅是棒棒糖?或者还有其他的示例代码,我可以用来玩和乱搞。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-02-20 22:34:54

Android在Android5.0之前并不存在,因此您不能在运行Android4.4的设备上使用它。

您可以在这里为旧的照相机API遵循API指南:http://developer.android.com/guide/topics/media/camera.html#custom-camera

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28599958

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档