简体   繁体   English

如何在不使用Android Studio的意图的情况下从相机拍照

[英]How to take a picture from camera without using intent in android studio

i am working on an android app. 我正在开发一个Android应用程序。 In which i am trying to implement the camera functionality and take a picture and save it in storage, without using the intent to avoid getting android built-in camera. 在这种情况下,我尝试实现相机功能并拍摄照片并将其保存在存储中,而无需使用避免获取android内置相机的意图。

CommonsWare's link is a good start. CommonsWare的链接是一个好的开始。 If you're strapped on time or lazy and need an in-app camera up and running I'd recommend using a library like https://github.com/commonsguy/cwac-cam2 , which, coincidentally was developed by the guy(s) over CommonsWare. 如果您因时间紧张或懒散而需要启动并运行应用程序内摄像头,建议您使用https://github.com/commonsguy/cwac-cam2之类的库,该库恰巧是由该人开发的( s)通过CommonsWare。

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

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