简体   繁体   English

Android App自定义相机

[英]Android App Custom camera

I made a custom camera and now functioning. 我做了一个自定义相机,现在可以工作了。 All I want is if the user click the camera or any related that call the camera, it will appear on the screen which camera want to be used? 我想要的是,如果用户单击摄像头或调用该摄像头的任何相关工具,它将出现在屏幕上要使用的摄像头? the default camera or my custom camera, its just like that. 默认相机或我的自定义相机,就是这样。

example: the latest update of My Tracks has a feature to select a camera. 例如: “我的足迹”的最新更新具有选择摄像机的功能。 Now if the user click the camera icon, the choices will popup to select which camera want to be use for capturing images....any help will be appreciated...thanks 现在,如果用户单击相机图标,则会弹出选择框,以选择要用于捕获图像的相机。...将不胜感激...感谢

As SMR mentioned put intent filter with (MediaStore.ACTION_IMAGE_CAPTURE) action. 如SMR所述,将意图过滤器与(MediaStore.ACTION_IMAGE_CAPTURE)动作一起使用。 But it is use full if other application use this intent for image capture not its own camera implementation. 但是,如果其他应用程序使用此意图进行图像捕获而不是其自己的相机实现,则表示已满。 Please refer using existing camera app to implement proper behavior. 请参考使用现有的相机应用程序以实现正确的行为。

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

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