I am doing a project on android phone and I hope to use the two camera at the same time. According to Is there any API to fetch both rear and front camera view at the same time? , it may be possible to realize it. However, when I tried it on HTC One S, it cannot work -- the second camera cannot be open. So is there anyone who used to do it seccessfully? If so, please tell me which phone you worked on. Thank you in advance.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
While it is possible in theory, in practice Android does not allow it at a firmware level. I'm not sure exactly what happens, but my guess is that one camera blocks some part of the API from the second one, thereby stopping two from working at once.
So for any device to do this, the manufacturer would have to change it at an OS level, and I don't think this has ever been done.
回答2:
There are currently two phones that do the trick: Samsung Galaxy S4 and LG Optimus G Pro. Neither defines an API to 3rd parties to use this feature in their apps.