views:

34

answers:

0

Hi. Here's the flow. I have a button in a layout along with a form as view stub. On click of that button, view stub is inflated and brought to focus. When I change the orientation, the activity gets restarted and goes to main screen with button. Can someone please tell me how to handle orientation change ? I mean, I want the screen to be in view stub itself with previously entered values but in different mode (landscape or portrait). I know I have to add android:configChanges="orientation" in AndroidManifest.xml. However, I dont know what to do in onConfiguationChanged method. Thanks.