问题
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