Android SDK - Detect physical location of front-facing camera

拥有回忆 提交于 2021-01-27 18:36:06

问题


The "normal" place for a front facing camera is to be on the top of the device when holding it in portrait (display taller than wide). The camera, when it is on top, is usually in near the middle, but not always. Sometimes it is in the corner.

There are also other devices (mostly tablets) where the hardware manufacturer has places the camera on the side when holding the device in portrait. For instance, the Lenovo Tab 10 (https://www.amazon.com/gp/product/B01MR3FS4F/ref=oh_aui_search_detailpage?ie=UTF8&psc=1).

Some device manufactures have even placed the camera on the bottom.

Is there a way with the Android SDK to determine the "physical location" of the camera as described above?

来源:https://stackoverflow.com/questions/53877986/android-sdk-detect-physical-location-of-front-facing-camera

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!