I have a camera preview function that is forced to stay in landscape mode.
Is it possible to indicate the current orientation of the phone (rather than the orientation of the screen).
Basically, I want to know if the user supports the phone in portrait mode or in landscape mode, so I can correctly rotate the received captured bitmap (right now it is always displayed in landscape mode).
thank
source
share