OK:
I could not make the camera library get a preview or take pictures in portrait mode. It works perfectly in landscape, but on my four different phones and pads it would not give an upright preview in portrait mode but tilting the picture by either 90 degrees right or left. Maybe I did something wrong or left out a parameter, that's why I posted my starting question three weeks ago. Scanning through forums like stackexchange and others I found out that other developers had this issue too. The problem is not in JordiCPs excellent wrapper, but in the underlying intrinsic Android classes. I refer to posts like this one:
I'm using the camera to show preview only (not to take pictures or record videos). The app is always in portrait mode (landscape mode is disabled). The camera preview is always rotated 90 degrees ...
stackoverflow.com
So I converted my code to use the camera2 library where the camera orientation is no issue. There is an example for this library here:
Camera2 library is based on the newer Camera API introduced in Android 5 (API 21). It is therefore supported by Android 5+ devices. It requires B4A v7.3+. The library is built to work together with CamEx2 class. Camera2 native API is more complex than the old API. However together CamEx2 and...
www.b4x.com
I am open to any correction, particularly if someone found out how to get a portrait preview with the original camera lib.