Android Question Camera error with portrait mode

nicieri

Active Member
Licensed User
Longtime User
In my App I have a take photo function that fails "sometimes" with a portrait mode.

When the camera open and take the photo change to 'landscape'.. and when return to my app, my activity desapear and appear again changing the position of the phone to portrait..

Is like the phone tray to redraw again the activity, the previous options selected in my activity diseapear.. like loading new activity.. and after one second this fails and crash the app.

I can't put the error code, because i don't have an error in log.. simple when i try to click some control in the app this crash because it's not initialized.
 

nicieri

Active Member
Licensed User
Longtime User
As aditional... I have #SupportedOrientations: portrait
and when i start my activity, also i have
Dim p As Phone
p.SetScreenOrientation(1)

but also is not working...
 
Upvote 0

nicieri

Active Member
Licensed User
Longtime User
The problem is that the camera turn the screen to 'landscape' and when return to my app in 'portrait'...

Multiple errors, the app is loading the layout again.. but fails.
 
Upvote 0
Top