I would like to know the equivalent Java code for this command:
android:configChanges="orientation"
Justification: I'm creating an app with the NavigationDrawer
Layout, and I need to make certain settings (or all screens) when the user rotates the device.