'How to know if calling setRequestedOrientation() will restart an activity?
So my app allows users to set a specific orientation in the preferences.
Then I call in the activity the next method
setRequestedOrientation(@ActivityInfo.ScreenOrientation int requestedOrientation)
But I also want to know if it's going to trigger activity recreation so I would not init other stuff
Is it possible to know if will recreate an activity?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
