Basically, My camera app is set to Portrait Mode. However, user can take photos in Potrait or landscape by rotating the phone accordingly (The app doesnt rotate).
So my question is, how can we find the captured image orientation?
I tried using DisplayManager.DisplayListener
, however, it works only when orientation of app happens. Since I have blocked the orientation of app to portrait mode, it doesnt get any callbacks here.
I even tried using ExifInterface
, however, it always gives 6 as rotation.
I am looking for solution using CameraX apis.