I am adding my app to the “open with” list by using the intent mechanism. it woks fine. however, sharing portrait photos from gallery and importing it to my app results with 90 degree rotated photo. Please note, I am not using the camera in this scenario and therefore I cannot use the correctOrientation flag.
- take portrait picture with my camera(not inside my app).
- open the gallery and select the picture(not from my app).
- share the picture with my app by selecting my app from the list of “open with”
- handle the intent inside my app,
Results: Landscape pictures are imported correctly, portrait pictures are rotated 90 degree.
Can someone help with this issue?