简体   繁体   English

明确意图使用android相机

[英]Using android camera with an explicit intent

I want to build an app that simply takes pictures without using another app to do it. 我想构建一个仅拍照而不使用其他应用程序的应用程序。 I saw in examples that implicit intents are used to take pictures. 我在示例中看到,隐式意图用于拍照。 But i want to do it with an explicit intent if it's possible and i want to know how to design the layout of the camera activity. 但是如果可能的话,我想以明确的意图来做,我想知道如何设计摄影机活动的布局。 Thanks for your answers. 感谢您的回答。

Go through this link http://www.tutorialspoint.com/android/android_camera.htm . 通过此链接http://www.tutorialspoint.com/android/android_camera.htm it has both implicit and explicit INTENT camera tutorial. 它具有隐式和显式的INTENT相机教程。

But they have used Camera API which is deprecated, use Camera2( https://developer.android.com/reference/android/hardware/camera2/package-summary.html ) Api which is replace for deprecated camera API 但是他们使用了不推荐使用的Camera API,请使用Camera2( https://developer.android.com/reference/android/hardware/camera2/package-summary.html )Api替换了不推荐使用的Camera API

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

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