Hi all!
Testing the sample project, without change anything:
www.b4x.com
If I click the button to launch the camera intent, take a portrait photo, and click "Done" to return, the app works fine and displays the new photo in an image preview.
However, if I click the button to open the camera intent and change the orientation to landscape, then click done to return, the app crashes and I can't debug.
This problem only occurs on Samsung S20 and A53 models, both with android 12.
I tested it with other models like Samsung S9 android 11, POCO X3 android 12 and this sample works perfectly.
Can someone help me?
Thanks!
Testing the sample project, without change anything:
[B4X] [B4XPages] Intent based camera
This solution will not work with Android 14+. Please use the more powerful MediaChooser instead: [B4X] MediaChooser - cross platform videos and images chooser B4A + B4i project that uses an intent in B4A and the Camera object in B4i to take a picture using the default camera app. The B4A code...

If I click the button to launch the camera intent, take a portrait photo, and click "Done" to return, the app works fine and displays the new photo in an image preview.
However, if I click the button to open the camera intent and change the orientation to landscape, then click done to return, the app crashes and I can't debug.
This problem only occurs on Samsung S20 and A53 models, both with android 12.
I tested it with other models like Samsung S9 android 11, POCO X3 android 12 and this sample works perfectly.
Can someone help me?
Thanks!