Swiping your finger across the screen from top to bottom, we are at the top of the menu with buttons. For example: sound (change sound), screen rotation (enable or disable screen rotation), etc.
Is it possible to programmatically click on the "Rotate the screen" button, namely: to prohibit screen rotation?
In other words: how to programmatically prohibit the rotation, and at the end of the program to return to the position before starting. Those. if before the launch there was a landscape, then it will remain until the end of the application, and if there was a portrait, will it also remain until the end of the application?
Option with android: screenOrientation = "portrait" in the Manifesto not to offer. He does not solve this problem!
Thanks in advance...