向内置相机应用程序发送命令 [英] Sending command to the in-built camera app
问题描述
如何向内置(默认)相机应用发送拍照命令?
How can I send take a picture command to the in-built (default) camera app?
假设相机应用在前台运行.现在,我希望我的后台服务要求相机应用程序拍照,而不是点击屏幕上的相机按钮.如何实现?
我了解向相机应用发送意图的可能性,但这需要点击屏幕按钮来拍照,或者创建我自己的自定义相机应用程序,然后可以控制.但我正在寻找一种方法(合法或黑客)使内置相机应用程序能够接受我的拍照命令.
I understand the possibility of sending an intent to the camera app, but that would then need a tap on the on-screen button to take a picture, or creating my own custom camera app which can then be controlled. But I am looking for a way (legal or hack) to make the in-built camera app receptive to my take a picture command.
我们有这些带有物理相机按钮的手机,按下它会触发某事,并向相机应用传送信息以拍照.我可以以某种方式从我的后台服务中触发某事吗?
We have these phones with physical camera buttons, pressing which triggers something and convey a message to the camera app to take a picture. Can I somehow trigger that something from my background service?
推荐答案
如何向内置(默认)相机应用发送拍照命令?
How can I send take a picture command to the in-built (default) camera app?
有数十种内置(默认)相机应用程序".设备制造商通常会自行发货.
There are dozens of "in-built (default) camera apps". Device manufacturers usually ship their own.
我怎样才能做到这一点?
How can I achieve this?
不要求任何相机应用(更不用说内置"应用)支持允许第三方应用控制相机行为的任何类型的 API,更不用说提供您所描述的特定访问权限了.
There is no requirement that any camera app, let alone an "in-built" one, support any sort of API that allows third-party apps to control the camera behavior, let alone offer the specific access that you are describing.
这篇关于向内置相机应用程序发送命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!