• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to save my button state when i rotate my Android phone?

 
arpita sabat
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


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?


Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic