Hello,
I tried many B4A examples to take pictures with the front and back camera in landscape and portrait mode.
Each method gave me problems.
However, Android offers to the user a very simple use of the camera.
Could it be possible tu call directly the Android transient routine of the camera offered to the user ?
Follow this tutorial for an intent based solution: Intent Based Camera
(EZCamera is also based on intents, however it was not updated and will not work properly on new devices.)