Android: Screen Orientation issues

view story

http://stackoverflow.com – I have an application, in which a login screen is displayed when user presses home button or switches to other applications or simply when the application goes to background. But I dont want the login screen to be displayed when the screen orientation changes. Any suggestion what should be done exactly like is it through implementing onConfigurationChanged, or something else?? A suggestion or an example is much appreciated. Thanks ! (HowTos)