I'm creating an application that is intended to run only in portrait mode. In the application I'm invoking the Android native camera app using an intent. When the phone is in portrait orientation the application works as expected. When the phone is in landscape orientation the camera application is launched in landscape orientation, this causes the main activity and my fragment to be recreated when the camera intent is closed which causes some unintentional behavior.
Is there any way to force the camera application to open only in portrait orientation when launching it via intent?
Thanks,