I am now working on an android application, that is just gonna be for demo purposes. So during the development of the project, we didn't focus a lot on the orientation changes to the application. Whenever there is an orientation change, the application crashes. It is now too late to maintain the data for each activity or fragment.
So my question is, is there a way to set the orientation to potrait throughout the application. Even if the user rotates the phone, can we maintain the state to be potrait?