How to retain the state of button click in android
<p>I have two layout for one activity like layout-port and layout-land  with different designs .if user click button in potrait mode and change to landscape mode activity is restarting or refreshing again can anybody tell how to avoid this can anybody tell how to maintain the state activity can anybody provide example</p>

<p>Thanks in advance</p>
