Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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

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?

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!