AndroidX
AndroidX copied to clipboard
Image is not displayed depending on device orientation
Version Information
- Visual Studio version: 17.2.6
- Xamarin.Android version: 12.3.3.3
- Using AndroidX or Support Libraries: Xamarin.AndroidX.AppCompat 1.4.2.1 Xamarin.Essentials 1.7.3 Xamarin.Google.Android.Material 1.6.1.1
Describe your Issue:
I am trying to display an image obtained by camera through using ActivityResultLauncher. If you set a fixed screen orientation for your activity and when taking a photo with your mobile you take it in the opposite orientation, the resulting image is not displayed in an ImageView. For example, if the activity is set to landscape and the photo is accepted with the mobile in portrait, the image is not displayed and vice versa.
Steps to Reproduce (with link to sample solution if possible):
Using the following project: TestImage.zip
- Run it with android device with camera
- Rotate the phone in landscape orientation
- Click the button on the screen
- Take a photo and accept
- The image is not displayed
Include any relevant Exception Stack traces, build logs, adb logs:
No error messages