Manually handling Rotation problem. onConfigurationChanged implemented.
Now, when the screen is rotating the activity is not being destroyed and
re-created.