I have developed an Android app. I have 3 buttons in my Activity named as A,B,C. At first, button C in disabled. When i clicked Button B, button C get Enabled. It is working fine but when i rotate the phone button C disabled. I have searched about it and found solution that onsaveInstance. How can i save my button state using onsaveInstance?